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

beeline csv,tsv outputformat needs backward compatibility mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.14.0
    • 0.14.0
    • Beeline
    • None
    • Hide
      The formats csv, tsv have been deprecated. The use of csv2 and tsv2 is recommended in place of them.

      - Old format quoted every field. New format quotes only fields that contain a delimiter or the quoting char.
      - Old format quoted using single quotes, new format quotes using double quotes
      - Old format didn't escape quotes in a field (a bug). New format does escape the quotes
      Show
      The formats csv, tsv have been deprecated. The use of csv2 and tsv2 is recommended in place of them. - Old format quoted every field. New format quotes only fields that contain a delimiter or the quoting char. - Old format quoted using single quotes, new format quotes using double quotes - Old format didn't escape quotes in a field (a bug). New format does escape the quotes

    Description

      Changes in HIVE-7390 break backward compatibility for beeline csv and tsv formats.
      This can cause problems for users upgrading to hive 0.14, if they have code for parsing the old output format. Instead of removing the old format in this release, we should consider it deprecated and support it in a few releases before removing it completely.

      Incompatible Changes in the tsv and csv formats-

      • Old format quoted every field. New format quotes only fields that contain a delimiter or the quoteing char.
      • Old format quoted using single quotes, new format quotes using double quotes
      • Old format didn't escape quotes in a field (a bug). New format does escape the quotes

      Attachments

        1. HIVE-8615.1.patch
          12 kB
          Thejas Nair
        2. HIVE-8615.2.patch
          27 kB
          Thejas Nair

        Issue Links

          Activity

            People

              thejas Thejas Nair
              thejas Thejas Nair
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: