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

ASF GitHub Bot commented on FLINK-2025:
---------------------------------------

Github user StephanEwen commented on the pull request:

    https://github.com/apache/flink/pull/685#issuecomment-103062241
  
    I think the contract in Java's `Boolean.fromString(str)` is that 
`equalsIgnoreCase("true")` is true, everything else is false.
    
    How about we extend this to
      - `equalsIgnoreCase("true")` => true
      - `1` => true
      - all else => false


> Support booleans in CSV reader
> ------------------------------
>
>                 Key: FLINK-2025
>                 URL: https://issues.apache.org/jira/browse/FLINK-2025
>             Project: Flink
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Sebastian Schelter
>            Assignee: Maximilian Michels
>
> It would be great if Flink allowed to read booleans from CSV files, e.g. 1 
> for true and 0 for false.



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

Reply via email to