You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Masashi Shibata (JIRA)" <ji...@apache.org> on 2018/12/08 11:33:00 UTC
[jira] [Created] (ARROW-3962) [Go] Support null values while
reading a CSV file.
Masashi Shibata created ARROW-3962:
--------------------------------------
Summary: [Go] Support null values while reading a CSV file.
Key: ARROW-3962
URL: https://issues.apache.org/jira/browse/ARROW-3962
Project: Apache Arrow
Issue Type: Bug
Components: Go
Reporter: Masashi Shibata
CSV reader doesn't support null values.
h1. How to reproduce
So when given a following CSV file, `(csv.Reader).Next` return `false`.
{code:java}
0;0;str-0
1;;str-1
;2;str-2
3;3;str-3
4;;str-4
5;5;str-5
6;6;
7;7;str-7
8;8;str-8
9;9;str-9{code}
The result of Example function in csv_test.go is:
{code:java}
# https://github.com/apache/arrow/blob/137a69e1fb6647dde5da9d18d9da47e7a9e694b0/go/arrow/csv/csv_test.go#L32-L90
rec[0]["i64"]: [0]
rec[1]["f64"]: [0]
rec[2]["str"]: ["str-0"]
rec[0]["i64"]: [1]
rec[1]["f64"]: [0]
rec[2]["str"]: ["str-1"]
{code}
The reason why stopping is csv.Reader got error while parsing empty string as a float64 (the error message is `strconv.ParseFloat: parsing "": invalid syntax`).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)