使用bq命令行将文件从GBQ提取到不带csv头的GCS [英] Extract files from GBQ to GCS without csv header using bq command line

查看:240
本文介绍了使用bq命令行将文件从GBQ提取到不带csv头的GCS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以运行如下命令:

Is it possible to run a command like:

bq extract <source_table> <destination_uris>

并使用一个标记导出而不包含csv头文件?与此处提到的API标志类似,但不使用API​​ - 仅通过 bq extract ...

and use a flag to export without the csv header? Similar to the API flag mentioned here, but without using the API- just via bq extract...

推荐答案

使用:

bq extract --noprint_header <source_table> <destination_uris> 

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

You can find this option from the output of:

bq help extract

[...]
--[no]print_header: Whether to print header rows for formats that have headers.
Prints headers by default.

这篇关于使用bq命令行将文件从GBQ提取到不带csv头的GCS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆