Bigquery now is mainly non-legacy SQL, so it should include --use_legacy_sql=false parameter (https://cloud.google.com/bigquery/docs/bq-command-line-tool).
my current url is bigquery:?project_id=xxx&dataset_id=xxxx&use_legacy_sql=false
currently, dadbod wrap the final command as
bq --project_id=xxx --dataset_id=xxxx --use_legacy_sql=false query 'actual SELECT clause',
but this will throw an error: FATAL Command 'use_legacy_sql=false' unknown.
According to the official document above, the bq command should be with query together and then other parameters, like
bq query --project_id=xxx --use_legacy_sql=false 'actual SELECT'
Please see below comparisons

<<=============Edit=================>>
https://cloud.google.com/bigquery/docs/bq-command-line-tool#positioning_flags_and_arguments
For bq command, there are global flags and command-specific flags.
--use_legacy_sql=false is command-specific flag (for query command) so it should be put after query command.

Bigquery now is mainly non-legacy SQL, so it should include
--use_legacy_sql=falseparameter (https://cloud.google.com/bigquery/docs/bq-command-line-tool).my current url is
bigquery:?project_id=xxx&dataset_id=xxxx&use_legacy_sql=falsecurrently, dadbod wrap the final command as
bq --project_id=xxx --dataset_id=xxxx --use_legacy_sql=false query 'actual SELECT clause',vim-dadbod/autoload/db/adapter/bigquery.vim
Line 25 in e95afed
but this will throw an error:
FATAL Command 'use_legacy_sql=false' unknown.According to the official document above, the
bqcommand should be withquerytogether and then other parameters, likebq query --project_id=xxx --use_legacy_sql=false 'actual SELECT'Please see below comparisons

<<=============Edit=================>>
https://cloud.google.com/bigquery/docs/bq-command-line-tool#positioning_flags_and_arguments
For
bqcommand, there are global flags and command-specific flags.--use_legacy_sql=falseis command-specific flag (forquerycommand) so it should be put afterquerycommand.