Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-10115

[C++] CSV empty quoted string is treated as NULL

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.1
    • 5.0.0
    • C++

    Description

      When parsing my CSV I have set
      ConvertOptions::strings_can_be_null to true.

      Now as I have values:

      1234,"",345
      

      the string value which is an empty string is treated as NULL.
      I've checked default valeus of ConvertOptions::null_values and there is empty string considered null, but here we have empty quoted string which shouldn't be treated as NULL in my opinion. Similar behavior we have in Postgresql, empty quoted string is not treated as a NULL: https://www.postgresql.org/docs/12/sql-copy.html

      Attachments

        Issue Links

          Activity

            People

              apitrou Antoine Pitrou
              mskrzypkowski Maciej
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m