[ 
https://issues.apache.org/jira/browse/PHOENIX-2434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15055035#comment-15055035
 ] 

James Taylor commented on PHOENIX-2434:
---------------------------------------

+1

> CSV loader: fail on invalid booleans
> ------------------------------------
>
>                 Key: PHOENIX-2434
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-2434
>             Project: Phoenix
>          Issue Type: Improvement
>            Reporter: Bruno Dumon
>         Attachments: PHOENIX-2434-rebased.patch, PHOENIX-2434.patch
>
>
> Currently the CSV loader parses boolean values using Boolean.parseBoolean(), 
> indirectly via PBoolean.toObject(String). This recognizes the string "true" 
> (ignoring case) as true, anything else is false.
> This is not very friendly to the user, who might for example think that '1' 
> is true and '0' is false. It would be better to fail on invalid input, just 
> like is the case for invalid numbers or invalid dates.



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

Reply via email to