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

Gabriel Reid resolved PHOENIX-1755.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 4.4.0
                   5.0.0
         Assignee: Gabriel Reid

Looks good, pushed to master & 4.x branch. Thanks [~karel1980]

> CSV loader needs a clearer error message for lines with insufficient fields
> ---------------------------------------------------------------------------
>
>                 Key: PHOENIX-1755
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1755
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.1.0
>            Reporter: Karel Vervaeke
>            Assignee: Gabriel Reid
>             Fix For: 5.0.0, 4.4.0
>
>
> Steps to reproduce
> Create a table
> {code}
> create table mytable(id bigint not null primary key, a_string varchar, a_long 
> bigint);
> {code}
> Create some data (note line 2 has only 2 fields)
> {code}
> cat <<EOF
> 1,foo,4
> 2,bar
> EOF > mytable.csv
> {code}
> Import the data
> {code}
> karel@chicken:~/work/apache/phoenix$ bin/psql.py -h ID,A_STRING,A_LONG 
> localhost mytable.csv
> csv columns from user. length=3, ID, A_STRING, A_LONG
> 15/03/19 16:03:24 ERROR util.CSVCommonsLoader: Error upserting record [2, 
> bar]: 2
> {code}
> The error message doesn't say much, could be better.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to