我需要从平面文件上传一个记录到BigQuery表。 以下是要上载的示例文件,分隔符为“$”:
LCR_REF_OPS_DEPOSITS$amm_reporting_row:string,amm_section:string,amm_report_row_desc:string,amm_subsection_row:float,amm_subsection_desc:string$$csv$|$REF$1$"$$$$TRUE$Sample file$ALT REF
问题是,在其中一列中,我需要上传引号字符(“),上传失败,因为它。 下面是我使用的API的代码片段:
^{pr2}$遇到错误:
google.cloud.exceptions.BadRequest: 400 CSV table encountered too many errors, giving up. Rows: 1; errors: 1.
有人能给我一些建议吗?在
BigQuery的
"
字符是used as default,用于在读取数据时将记录括起来。在对于您来说,这可能是一个解决方法:
相关问题 更多 >
编程相关推荐