[
https://issues.apache.org/jira/browse/PHOENIX-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13914892#comment-13914892
]
James Taylor commented on PHOENIX-53:
-------------------------------------
[~jviolette123] - use the master branch. The source of truth is here:
https://git-wip-us.apache.org/repos/asf/incubator-phoenix.git
The url you mentioned is the mirror of this one - sometimes it gets a little
behind the source-of-truth one.
Would it be possible for you to get this to me within the next day or two? I
plan to cut an RC for 3.0 next week.
Thanks!
> CSV loader fails on empty line
> ------------------------------
>
> Key: PHOENIX-53
> URL: https://issues.apache.org/jira/browse/PHOENIX-53
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 2.2.3
> Reporter: James Violette
> Labels: patch
> Fix For: 2.2.3
>
> Attachments: commons-csv-1.0-SNAPSHOT.jar,
> incubator-phoenix-commons-csv-rev1.patch, incubator-phoenix-csv-commons.patch
>
>
> in org.apache.phoenix.util.CSVLoader, the upsert fails if it encounters an
> empty line. This occurs if all lines end with the new line character and the
> reader returns an empty line at the end.
> A fix is to add a guard while reading the next line.
> public void upsert(CSVReader reader) throws Exception {
> ...
> while ((nextLine = reader.readNext()) != null) {
> if (nextLine.length==0) {
> continue;
> }
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)