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

Column compare should be case insensitive for name

    XMLWordPrintableJSON

Details

    Description

      Hive stores all name related value as lower case, such as db_name, tbl_name, col_name etc. But the compare of FieldSchema does not ignore the case of name, which may cause incorrect result of compare.

      Bug Description:
      Some computing engines are case sensitive for column name. For example, Spark will add a table property to save the column fields when creating a table, and will replace column fields with this property when fetching table fields.

      When calling ALTER TABLE ... ADD COLUMNS, the compare of fields between old table and new table will be not expected, and the ADD COLUMNS operation will be cascaded to PARTITIONS, which is unnecessary and time consuming if the table has many partitions.

      Attachments

        Issue Links

          Activity

            People

              wechar Wechar
              wechar Wechar
              Votes:
              0 Vote for this issue
              Watchers:
              2 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