[英]BigQuery load parquet file
I am trying to load a parquet type file into the bigquery table.我正在尝试将镶木地板类型的文件加载到 bigquery 表中。
However, the date type column in the yyyy-mm-dd format is recognized as a String, and the following error occurs.但是yyyy-mm-dd格式的日期类型列被识别为String,出现如下错误。
ERROR - Failed to execute task: 400 Provided Schema does not match Table my_prj.my_dataset.my_table. Field _P1 has changed type from DATE to STRING.
field_P1: 2022-10-05 field_P1: 2022-10-05
Is there any way to solve it?有什么办法解决吗?
The first solution that comes to my mind is to load the data using Pandas library in Python. This way, you can convert string to related date format and load the data directly to BigQuery.我想到的第一个解决方案是使用 Python 中的 Pandas 库加载数据。这样,您可以将字符串转换为相关的日期格式并将数据直接加载到 BigQuery。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.