Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
500 views
in Technique[技术] by (71.8m points)

google bigquery - BigQuey execution status of Stored Procedure

How do I check if the execution of the stored procedure is successful. In the code below, I want to execute my_prc 50 times, and for each run (successful/unsuccessful) I want to update some table with the status run.

WHILE i < 50 DO

call `my_project.my_dataset.my_prc`(project_name,data_set_name,table_name,v_date,v_sql,v_error);

If above proc is still executing
    wait ;
else If above proc finished successfully 
then
update some_table with status=Success;
set i = i + 1;
end

END LOOP

Note: In my_prc I have dynamic DML SQL so even if I know the status of that SQL then I can return that status via OUT parameter. So my question is how do I check the status of SQL run in BigQuery.

question from:https://stackoverflow.com/questions/65903147/bigquey-execution-status-of-stored-procedure

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...