使用 bq 命令行将文件从 GBQ 提取到 GCS,无需 csv 标头

rmg*_*rmg 3 google-bigquery

是否可以运行如下命令:

bq extract <source_table> <destination_uris>
Run Code Online (Sandbox Code Playgroud)

并使用标志在没有 csv 标头的情况下导出?类似于这里提到的 API 标志,但不使用 API-只是通过bq extract...

Fel*_*ffa 6

用:

bq extract --noprint_header <source_table> <destination_uris> 
Run Code Online (Sandbox Code Playgroud)

您可以从以下输出中找到此选项:

bq help extract

[...]
--[no]print_header: Whether to print header rows for formats that have headers.
Prints headers by default.
Run Code Online (Sandbox Code Playgroud)