From 75f770694c4d111da780c3be5bb5ea813d90a59b Mon Sep 17 00:00:00 2001 From: Alexander Kolbasov Date: Thu, 26 Apr 2018 15:24:00 -0700 Subject: [PATCH 1/1] HIVE-19337 Partition whitelist regex doesn't work (and never did) --- metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java index ba46e63839..35e503b1dc 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java @@ -304,7 +304,7 @@ public void setConf(Configuration conf) { initialize(propsFromConf); String partitionValidationRegex = - hiveConf.get(HiveConf.ConfVars.METASTORE_PARTITION_NAME_WHITELIST_PATTERN.name()); + hiveConf.get(ConfVars.METASTORE_PARTITION_NAME_WHITELIST_PATTERN.varname); if (partitionValidationRegex != null && !partitionValidationRegex.isEmpty()) { partitionValidationPattern = Pattern.compile(partitionValidationRegex); } else { -- 2.16.3