我想在不将语句内容回显到标准输出的情况下运行多语句查询。单语句查询不回显语句,如此处所示...
bq query --use_legacy_sql=false --project_id=livescore-sandpit-data <<EOF
select current_timestamp();
EOF
...产生...
+---------------------+
| f0_ |
+---------------------+
| 2020-04-02 08:02:15 |
+---------------------+
即select current_timestamp()
不回显,而多语句查询则回显语句......
bq query --use_legacy_sql=false --project_id=livescore-sandpit-data <<EOF
select current_timestamp();
select current_timestamp();
EOF
...产生...
Waiting on bqjob_r1a1fef57eab6f80b_0000017139e86883_1 ... (1s) Current status: DONE
select current_timestamp(); -- at [1:1]
+---------------------+
| f0_ |
+---------------------+
| 2020-04-02 08:01:05 |
+---------------------+
select current_timestamp(); -- at [2:1]
+---------------------+
| f0_ |
+---------------------+
| 2020-04-02 08:01:06 |
+---------------------+
我希望有时能够关闭此功能,这样它就不会弄乱我的输出。(我在命令行上运行多个 bq 查询作为开发测试硬度的一部分)。
这可能吗?