Cloud SQL to BigQuery Issue about null
Problem
CSV export does not format NULLs and newlines correctly When you export data as CSV using the Cloud SQL export feature, NULLs are exported as ”N, which can cause the CSV file to contain unbalanced quotation marks. Additionally, if your text data contains a newline character, a trailing quote mark is added at the end of the line.
既知の問題  |  Cloud SQL for MySQL  |  Google Cloud
https://gyazo.com/8491e5e245d3440aaf1c26e95321c658
Cloud Storage からの CSV データの読み込み  |  BigQuery  |  Google Cloud
Golang library
google-api-go-client/bigquery-gen.go at master · googleapis/google-api-go-client · GitHub
Solutions
"N → \N using SQL or sed
code:bash
sed 's/,"N,/,\\N,/g' | sed 's/,"N,/,\\N,/g' | sed 's/^"N,/\\N,/g' | sed 's/,"N$/,\\N/g'
gcloud - Google cloud sql export csv fails when contains nulls - Stack Overflow
Export from MySQL to csv and then import from the same file alters data
Cloud SQL Export to CSV
#bigquery #cloudsql #null #import