You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/12/08 11:34:00 UTC

[jira] [Updated] (ARROW-3962) [Go] Support null values while reading a CSV file.

     [ https://issues.apache.org/jira/browse/ARROW-3962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ASF GitHub Bot updated ARROW-3962:
----------------------------------
    Labels: pull-request-available  (was: )

> [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
>            Priority: Minor
>              Labels: pull-request-available
>
>  
> 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)