Skip to content
Advertisement

Using a SQL source file with the bigquery cli

Is it possible to use an input file with the bigquery CLI?

Advertisement

Answer

If you’re using unix (or have cygwin installed on windows), you can use xargs:

Alternately you can use back-ticks:

Note that bq can only process one command at a time — if your .sql script has several queries, you’ll need to split the file on ;

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement