Google cloud sql export csv fails when contains nulls

萝らか妹 提交于 2019-12-11 04:52:43

问题


I'm exporting a table from my Mysql database in Cloud Sql with the command,

gcloud sql export csv INSTANCE URI --query = QUERY

I have the file in my bucket, but when I try to import into Bigquery it fails, I noticed that all nulls are replaced by "n,

not even close the quote.

I found that this is a known bug, https://cloud.google.com/sql/docs/mysql/known-issues

Someone has a temporary solution?

thanks a lot.


回答1:


The fix for this issue is still currently being addressed by the Cloud SQL Team. You can stay update on this thread

If you have to use CSV, you can try using an SQL client to issue an import with the options you prefer (LOAD DATA LOCAL INFILE) instead of using the Cloud SQL import API



来源:https://stackoverflow.com/questions/53435419/google-cloud-sql-export-csv-fails-when-contains-nulls

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