I am using the bq command line tool to execute queries from a remote machine and then send out to specific tables. bq query
displays the query output everytime. what is the flag to suppress/hide output from bq query
command?
Use the -n=0
option to bq query
. Here is an example with and without this option:
$ bq query --use_legacy_sql=false "SELECT x FROM UNNEST([1, 2, 3]) AS x;"
Waiting on <job id> ... (0s) Current status: DONE
+---+
| x |
+---+
| 1 |
| 2 |
| 3 |
+---+
$ bq query -n=0 --use_legacy_sql=false "SELECT x FROM UNNEST([1, 2, 3]) AS x;"
Waiting on <job id> ... (0s) Current status: DONE
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With