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

Partition whitelist regex doesn't work (and never did)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 2.3.3
    • None
    • Metastore
    • None

    Description

      ObjectStore.setConf() has the following code:

      String partitionValidationRegex =
       hiveConf.get(HiveConf.ConfVars.METASTORE_PARTITION_NAME_WHITELIST_PATTERN.name());
      

       Note that it uses name() method which returns enum name (METASTORE_PARTITION_NAME_WHITELIST_PATTERN) rather then .varname

      As a result the regex will always be null.

      The code was introduced as part of

      HIVE-7223 Support generic PartitionSpecs in Metastore partition-functions

      So looks like this was broken since the original code drop. This is fixed in Hive3 - probably when alangates reworked access to configuration (HIVE-17733) so it isn't a bug in Hive-3.

      stakiar_impala_496e FYI.

      Attachments

        1. HIVE-19337.01.branch-2.patch
          1 kB
          Alex Kolbasov
        2. HIVE-19337.03.branch-2.patch
          1 kB
          Alex Kolbasov

        Issue Links

          Activity

            People

              Unassigned Unassigned
              akolb Alex Kolbasov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: