How to load specific date format into BigQuery

跟風遠走 提交于 2020-02-05 03:47:47

问题


When loading a .csv file into BigQuery with dates with this format DD/MM/YY it doesn't work, if I specify the schema for the table and I select Date Format.

However, if I don't specify the schema and I choose Automatically detect it works and converts the date format into YYYY-MM-DD.

Is there any possibility of convert the date into the right format manually and specify the name for that field?

Thanks, David


回答1:


Unfortunatelly, there is no way to control date formatting from the load API. You can load data into STRING first, and then use Standard SQL's PARSE_DATE function to parse it using any custom format.



来源:https://stackoverflow.com/questions/44111187/how-to-load-specific-date-format-into-bigquery

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!