如何从 bq 命令行工具调用 BigQuery 过程?
How can I call a BigQuery procedure from the bq command-line tools?
如何从 bq 命令行工具调用 BigQuery 过程?
我尝试了以下表格,但它对我不起作用:
bq query 'call dataset.procedure();'
bq query 'call `project.dataset.procedure`();'
bq
命令行客户端还不支持 call
关键字是真的吗?谢谢
您需要使用#standardSQL:
bq query "call temp.proc()"
报错:
Error in query string: Error processing job 'fh:bqjob_r40': Encountered " "call "" at line 1, column 1.
Was expecting:
[Try using standard SQL (https://cloud.google.com/bigquery/docs/reference/standard-sql/enabling-standard-sql)]
遵循 link,您会发现解决此问题的一种方法是:
bq query --use_legacy_sql=false "call temp.proc()"
如何从 bq 命令行工具调用 BigQuery 过程? 我尝试了以下表格,但它对我不起作用:
bq query 'call dataset.procedure();'
bq query 'call `project.dataset.procedure`();'
bq
命令行客户端还不支持 call
关键字是真的吗?谢谢
您需要使用#standardSQL:
bq query "call temp.proc()"
报错:
Error in query string: Error processing job 'fh:bqjob_r40': Encountered " "call "" at line 1, column 1. Was expecting: [Try using standard SQL (https://cloud.google.com/bigquery/docs/reference/standard-sql/enabling-standard-sql)]
遵循 link,您会发现解决此问题的一种方法是:
bq query --use_legacy_sql=false "call temp.proc()"