Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-20917

OpenCSVSerde quotes all columns

    XMLWordPrintableJSON

Details

    Description

      The OpenCSVSerde produces a CSV with all its columns quoted 

      no matter of they type or if the string columns contain a separator or not.

       

      The problem is some readers (such postgresql) are not compatible with

      such CSV, in particular when bulk loading them thought COPY statement.

       

      I propose a new CsvSerde, based on a Univocity Parser (wich is used by Apache Spark)

      that has been described a 2 times faster thant OpenCSV. https://github.com/uniVocity/csv-parsers-comparison . This new CsvSerde whould only quote columns when needed.

       

      Regards,

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              natus nicolas paris
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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