[英]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.