You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Bruno Dumon (JIRA)" <ji...@apache.org> on 2015/11/19 11:13:10 UTC

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

Bruno Dumon created PHOENIX-2434:
------------------------------------

             Summary: 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


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)