[
https://issues.apache.org/jira/browse/PHOENIX-1755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14369506#comment-14369506
]
ASF GitHub Bot commented on PHOENIX-1755:
-----------------------------------------
GitHub user karel1980 opened a pull request:
https://github.com/apache/phoenix/pull/51
PHOENIX-1755 Improve error logging if csv line has insufficient fields
Fix for PHOENIX-1755
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/karel1980/phoenix PHOENIX-1755
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/phoenix/pull/51.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #51
----
commit 42b839d2302def0e4b760380c00cbe6709c12db5
Author: Karel Vervaeke <[email protected]>
Date: 2015-03-19T15:10:07Z
PHOENIX-1755 Improve error logging if csv line has insufficient fields
----
> 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
> Reporter: Karel Vervaeke
>
> 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)