Status Update
Comments
bl...@google.com <bl...@google.com>
my...@google.com <my...@google.com>
my...@google.com <my...@google.com>
th...@google.com <th...@google.com>
bw...@google.com <bw...@google.com>
[Deleted User] <[Deleted User]> #3
bw...@google.com <bw...@google.com>
dd...@google.com <dd...@google.com>
cr...@google.com <cr...@google.com>
ad...@firstdollar.com <ad...@firstdollar.com> #4
Note that there is somewhat of a workaround to this posted in this Stack Overflow comment,
Description
It would be nice to be able to pass parameters to external query inside stored procedure in BigQuery.
Something along the lines
It's of course possible to move WHERE clause outside, but this would mean that the whole table is read into BQ temporary table. In case of big indexed external table we lose any benefit of index, and it will also incur a large cost.
Currently
EXTERNAL_QUERY
function requires literal string as an argument, so it's not possible to create it dynamically inside stored procedure.