-
Notifications
You must be signed in to change notification settings - Fork 4.8k
HIVE-29376:Using partition spec in DESC FORMATTED sql is unsupported … #6259
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
…for Iceberg table
|
| return null; | ||
| } | ||
|
|
||
| private Partition getPartition(Table tab, Map<String, String> partitionSpec) throws HiveException { |
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.
The logic here is almost same as getPartition() in DescTableOperation.java https://github.com/apache/hive/pull/6259/changes#diff-641c62b42b01bff41c89a3b3661c15d6c08fce0e48740347f36fe32448984147R131
Check if you can add them in an utility so it can be reused
soumyakanti3578
left a comment
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.
DDLUtils.isIcebergTable() has been used in many places in the compiler. I think we should not use a specific table type here.
| } | ||
|
|
||
| private Partition getPartition(Table tab, Map<String, String> partitionSpec) throws HiveException { | ||
| boolean isIcebergTable = DDLUtils.isIcebergTable(tab); |
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.
Please don't use DDLUtils.isIcebergTable as this API in the compiler is too specific. Instead please use tab.isNonNative() in conjunction to other APIs if needed.



…for Iceberg table
What changes were proposed in this pull request?
Adds support for using partition spec with describe statement for iceberg table.
and updated the other test outputs as partition information is also gettting printed for desc statement after the changes
Why are the changes needed?
currently using partition spec with describe statement for iceberg table result in unsupported exception
Does this PR introduce any user-facing change?
yes, this statement will not result in exception anymore
How was this patch tested?
build locally and ci tests and added q tests