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

Column Names trimmed of leading and trailing spaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.1, 2.1.0
    • Parser

    Description

      PROBLEM:
      As per the Hive Language DDL:
      https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL
      In Hive 0.12 and earlier, only alphanumeric and underscore characters are allowed in table and column names.
      In Hive 0.13 and later, column names can contain any Unicode character (see HIVE-6013). Any column name that is specified within backticks (`) is treated literally.
      However column names

      ` left` resulted in `left`
      ` middle ` resulted in `middle`
      `right ` resulted in `right`
      `middle space` resulted in `middle space`
      ` middle space ` resulted in `middle space`
      

      Attachments

        1. HIVE-13299.01.patch
          8 kB
          Pengcheng Xiong

        Issue Links

          Activity

            People

              pxiong Pengcheng Xiong
              pxiong Pengcheng Xiong
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: