From 0037e89bdf404e6431498ddb8cd77eab39fddae3 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 d85a001bf0..ef6d544404 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java @@ -303,7 +303,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