首页 > 解决方案 > BigQuery - 在哪里可以找到错误流?

问题描述

我已从 GCS 将 300K 行的 CSV 文件上传到 BigQuery,但收到以下错误:

错误图像

我在哪里可以找到错误流?

我已将创建表配置更改为允许 4000 个错误并且它有效,因此消息中的 3894 行一定有问题,但此错误消息并没有告诉我太多关于哪些行或原因的信息。

谢谢

标签: google-cloud-platformgoogle-bigquery

解决方案


通过在终端中运行以下命令,我终于设法看到了错误流:

bq --format=prettyjson show -j <JobID>

它返回一个包含更多细节的 JSON。就我而言,它是:

"message": "Error while reading data, error message: Could not parse '16.66666666666667' as int for field Course_Percentage (position 46) starting at location 1717164"

推荐阅读