0

我浏览了 BQ 中所有支持的文件类型的文档。但是我遇到了这个问题。

考虑一下,我有一个示例压缩文件 .gz,其格式为 -

文件类型 :

col1^col2^col3
d1^d2^d3

命令:

bq load --source_format=CSV projectId:dataset.table gs://bucket/*.gz

当我使用带有自动模式的 GUI 上传文件时,它会正确加载数据。但是当我尝试 bq load cmd 时它失败了,说 -

错误 :

Error while reading data, error message: CSV table references
column position 63, but line starting at position:0 contains only 1
columns.

关于插入符号分隔文件的任何想法?

谢谢

4

1 回答 1

1
bq load --help

表明有一个选项:

-F,--field_delimiter: The character that indicates the boundary between
    columns in the input file. "\t" and "tab" are accepted names for tab.

指示字段分隔符

于 2019-08-02T14:36:15.333 回答