You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "James Taylor (JIRA)" <ji...@apache.org> on 2016/01/08 19:01:39 UTC

[jira] [Updated] (PHOENIX-2434) CSV loader: fail on invalid booleans

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

James Taylor updated PHOENIX-2434:
----------------------------------
    Assignee: Bruno Dumon

> 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
>            Assignee: Bruno Dumon
>             Fix For: 4.7.0
>
>         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)