[英]How to copy data from one table into another table which has a record repeated column in GCP Bigquery
[英]How do I query in Google Bigquery from a table that has Null in a date column?
我正在使用 BigQuery,我应该从一个表中查询,但该表有一个日期列,并且部分值是空值。
我收到以下错误:
读取表时出错:test.first_spend_day,错误消息:无法将值转换为日期。 错误:无效日期:“NULL”。 第 3746 行; Col 3. 文件:1mkoqxim8H6TRt20V2Yob9MnF9hC7aUXG4wtzf-jFE20
我试图将列转换为字符串,还尝试添加一个 where 子句“if not null”
没有帮助
尝试使用SAFE_CAST()
而不是CAST()
。
请参阅https://cloud.google.com/bigquery/docs/reference/standard-sql/conversion_functions#safe_casting
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.