-
Notifications
You must be signed in to change notification settings - Fork 4.8k
HIVE-29066: PARTITION_NAME_WHITELIST_PATTERN is not honouring session level metaconf #5943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
bbf81bd
to
307e7df
Compare
The test failure is flaky as reported in https://issues.apache.org/jira/browse/HIVE-29061, will re-trigger if there are any review commets. |
Can you please help with the review @deniskuzZ @okumin ? |
@@ -525,6 +520,15 @@ public String getMetaConf(String key) throws MetaException { | |||
return getConf().get(key, confVar.getDefaultVal().toString()); | |||
} | |||
|
|||
private Pattern getPartitionValidationRegex() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move it to MetaStoreServerUtils#validatePartitionNameCharacters
MetaStoreServerUtils.validatePartitionNameCharacters(part.getValues(), conf)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@deniskuzZ , can you please check if the latest commit is what you meant by moving it to MetaStoreServerUtils?
Also, in HS2 DynamicPartitionCtx#whiteListPattern field exist per object. I am seeing the issue in cluster as well. (when i set the config in hive-site.xml) Unfortunately, its not happening in q file. Can you suggest should I make similar changes in DynamicPartitionCtx and org/apache/hadoop/hive/ql/exec/FileSinkOperator.java:1129? |
1411a40
to
8e20862
Compare
The reason why session level
If we are using
instead of getMetaConf In q files, as HMS runs is embedded the conf object "might be" shared. |
8e20862
to
3afea9d
Compare
|
What changes were proposed in this pull request?
Check HIVE-29066, Ensure that the partitionValidationPattern is picked from the metaconf instead of HMSHandler Object.
Why are the changes needed?
To honour, modified session level metaconf.
Does this PR introduce any user-facing change?
NO
How was this patch tested?
q file is attached.