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

Store default value text instead of default value expression in metastore

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • SQL
    • None

    Description

      Currently for default value an expression is generated and serialized to store in metastore. It should be improved to rather serialize the default value itself instead of expression and store that in metastore. This will have the following benefits:

      • It will make metastore schema upgrade safe. e.g. if a UDF function name is changed hive wouldn't be able to parse back the expression for this UDF which was serialized in earlier version.
      • It will make metastore schema for default constraint hive agnostic. Other databases would be able to use the value as it is.

      Attachments

        1. HIVE-18857.3.patch
          5 kB
          Vineet Garg
        2. HIVE-18857.2.patch
          4 kB
          Vineet Garg
        3. HIVE-18857.1.patch
          4 kB
          Vineet Garg

        Issue Links

          Activity

            People

              vgarg Vineet Garg
              vgarg Vineet Garg
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: