Bigquery - 在一列中加载带有“#N/A”的 CSV
Bigquery - loading CSV with "#N/A" in one column
我如何使用 bq 加载 (gsutil) 成功加载 csv,其中 FLOAT 列的值很少,如 #N/A。
当我使用以下 bq 加载时出现以下错误
bq --location=australia-southeast1 load --max_bad_records=20 --allow_jagged_rows --skip_leading_rows=1 --source_format=CSV DATASET1.T1.FILE1 gs://load_files/Test/FILE!.csv
错误 - 无法将 #N/A 解析为字段 blah blah
的双精度值
不能修改 csv 文件
您可以尝试使用 --null-marker
标志 (cf here),将“#N/A”指定为特殊的空字符。
我如何使用 bq 加载 (gsutil) 成功加载 csv,其中 FLOAT 列的值很少,如 #N/A。
当我使用以下 bq 加载时出现以下错误
bq --location=australia-southeast1 load --max_bad_records=20 --allow_jagged_rows --skip_leading_rows=1 --source_format=CSV DATASET1.T1.FILE1 gs://load_files/Test/FILE!.csv
错误 - 无法将 #N/A 解析为字段 blah blah
的双精度值不能修改 csv 文件
您可以尝试使用 --null-marker
标志 (cf here),将“#N/A”指定为特殊的空字符。