Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-18360

Update commons-csv from 1.0 to 1.9.0.

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      commons-csv 1.0 is a very old jar, mvnrepository shows this jar as the 2014 version, I have compiled and tested locally, I think this jar can be upgraded to commons-csv 1.9 version.

      The link to the release note is as follows:
      https://commons.apache.org/proper/commons-csv/changes-report.html

      We can see that the new version fixes some issues.

      I read the code used, we use header related methods. We found that many header-related methods have been upgraded.

      Release 1.1 – 2014-11-16
      CSVFormat#withHeader doesn't work well with #printComment, add withHeaderComments(String...).
      CSVFormat.EXCEL should ignore empty header names.

      Release 1.2 – 2015-08-24
      CSVFormat.with* methods clear the header comments.

      Release 1.3 – 2016-05-09
      Add shortcut method for using first record as header to CSVFormat.
      Add withHeader(Class<? extends Enum>) to CSVFormat.
      CSVPrinter doesn't skip creation of header record if skipHeaderRecord is set to true.
      Add IgnoreCase option for accessing header names.

      Release 1.5 – 2017-09-03
      Fix incorrect method name 'withFirstRowAsHeader' in user guide.

      Release 1.7 – 2019-06-01
      Cannot get headers in column order from CSVRecord.

      Release 1.8 – 2020-02-01
      CSVFormat#validate() does not account for allowDuplicateHeaderNames.
      A single empty header is allowed when not allowing empty column headers.

      Release 1.9.0 – 2020-07-24
      Add possibility to use ResultSet header meta data as CSV header.

      Attachments

        Issue Links

          Activity

            People

              slfan1989 Shilun Fan
              slfan1989 Shilun Fan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: