Redshift DataAPI BatchExecuteStatement set query_group issue

0

I want to set query_group when run statements using BatchExecuteStatement. the batch sqls to run is

set query_group to 'group_label';
call sp_abc();
reset query_group;

sp_abc will call 2 procedures sp_child1 and sp_child2.

I check from SVL_STORED_PROC_CALL, found the query_group for sp_abc is set to group_label, but the procedures called in the sp_abc sp_child1 and sp_child2 are not set. it is the expected behavior? As my understand, the query_group of SP called in the sp_abc should also be group_label.

Thanks

shawn
질문됨 8달 전233회 조회
1개 답변
0
수락된 답변

Hello,

It is not the expected behavior. Using Redshift BatchExecuteStatement API, the query_group should be set as same for the parent and child stored procedures.

I could not replicate the issue in my environment and my testing showed that the parent and child procedures called via BatchExecuteStatement had the same query_group assigned from the SVL_STORED_PROC_CALL system view.

To look it further, we require details that are non-public information. Please open a support case with AWS using the following link:

https://docs.aws.amazon.com/awssupport/latest/user/case-management.html

Have a nice day!

AWS
답변함 8달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠