admin管理员组文章数量:1391782
I'm using google.golang/api/bigquery/v2
package to import CSV files from GCS into BigQuery. The CSV file is using CRLF (\r\n) as the line separator.
Can BigQuery correctly parse CSV files that use CRLF (\r\n)?
I've searched the docs but couldn't find a clear statement about this.
I'm using google.golang./api/bigquery/v2
package to import CSV files from GCS into BigQuery. The CSV file is using CRLF (\r\n) as the line separator.
Can BigQuery correctly parse CSV files that use CRLF (\r\n)?
I've searched the docs but couldn't find a clear statement about this.
Share Improve this question edited Mar 12 at 9:16 Tri Pham asked Mar 12 at 9:14 Tri PhamTri Pham 255 bronze badges1 Answer
Reset to default 1\r\n should be just fine.
BQ doc refers to RFC 4180, which says:
- Each record is located on a separate line, delimited by a line break (CRLF).
The document in turn refers to RFC 2234, which defines:
CRLF = CR LF ; Internet standard newline
本文标签: goDoes BigQuery support CSV files with CRLF (rn) line endingsStack Overflow
版权声明:本文标题:go - Does BigQuery support CSV files with CRLF (rn) line endings? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744762552a2623837.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论