Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-1223

Allow value escaping in CSV files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.8.0
    • None
    • API / Scala
    • None

    Description

      The CSV Parser currently does not interpret escaped values

      The example from here
      http://en.wikipedia.org/wiki/Comma-separated_values#Example

      Year,Make,Model,Description,Price
      1997,Ford,E350,"ac, abs, moon",3000.00
      1999,Chevy,"Venture ""Extended Edition""","",4900.00
      

      Does not work currently.

      Here escaping inside the string field generates an error.

      For reference

      An interesting post about the fallacies that could be encountered when parsing CSV files.

      http://tburette.github.io/blog/2014/05/25/so-you-want-to-write-your-own-CSV-code/

      Attachments

        Activity

          People

            jkirsch Johannes
            jkirsch Johannes
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: