我试图将表从 Teradata 加载到 BQ。我的管道首先将表数据导出到 gcs 位置,然后使用 bqload,将数据从 gs:// 加载到 bq 表。
我的 bqload 看起来像这样
bq load --autodetect --source_format=CSV --project_id=xx-xx-xx --field_delimiter='^' \
BQTable \
gs:// \
Name:string,Age:INT64,Place:NUMERIC ...
但是当我尝试使用 bq load 将数据加载到 bq 表中时出现以下错误
Error detected while parsing row starting at position: 1830577. Error: Data between
close double quote (") and field separator.
我尝试在 bqload 命令中使用几个选项,例如 --quote ="" ,当我使用它时,它给了我一个不同的错误,如下所示
Could not parse 'MP' as NUMERIC for field XXXXXX (position 18) starting at
location 1030399 with message 'Invalid NUMERIC value: MP'
也玩了很长时间其他选项,但没有给我任何结果。有人可以发光吗?