You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Gabriel Reid (JIRA)" <ji...@apache.org> on 2015/09/19 20:39:04 UTC
[jira] [Resolved] (PHOENIX-2239) Honor strict option when catching
data error during CSV load
[ https://issues.apache.org/jira/browse/PHOENIX-2239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gabriel Reid resolved PHOENIX-2239.
-----------------------------------
Resolution: Fixed
Assignee: Gabriel Reid
Fix Version/s: 4.6.0
Pushed to master and 4.x branches
> Honor strict option when catching data error during CSV load
> ------------------------------------------------------------
>
> Key: PHOENIX-2239
> URL: https://issues.apache.org/jira/browse/PHOENIX-2239
> Project: Phoenix
> Issue Type: Bug
> Reporter: James Taylor
> Assignee: Gabriel Reid
> Fix For: 4.6.0
>
> Attachments: PHOENIX-2239.patch, PHOENIX-2239b.patch
>
>
> The Phoenix CSV Bulk Loader has a strict option (i.e. -s or --strict) which is intended to abort the load if a data error is found. Looks like we're not passing this option through the errorOnRecord method, but I think that'd be a good (and likely pretty easy) improvement:
> {code}
> @Override
> public void errorOnRecord(CSVRecord csvRecord, String errorMessage) {
> LOG.error("Error upserting record {}: {}", csvRecord, errorMessage);
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)