HIVE-29413: Avoid code duplication by updating getPartCols method for iceberg tables#6413
HIVE-29413: Avoid code duplication by updating getPartCols method for iceberg tables#6413ramitg254 wants to merge 7 commits intoapache:masterfrom
Conversation
|
@ramitg254 please take a look: 9e7535c. I would suggest following similar approach |
|
but here we are creating separate method getEffectivePartCols() and leaving getPartCols() as it is, which as per our discussion on that closed pr we shouldn't do that, and only go ahead with updating getPartCols() |
Where did I say that? The ask was to keep the original method unchanged. same here |
|
oh I got confused due to this comment: #6337 (comment) in which getSupportedPartCols() was just separate method similar to getEffectivePartCols() |
|
I am fine with that earlier approach as well but recently I saw this one: https://issues.apache.org/jira/browse/HIVE-29525 so I thought we should have unified getPartCols() and getCols() which gives similar results as native hive tables as first step towards solving this after that those plan logics can be taken care of later on when that ticket will be addressed. please share your thoughts on this idea |
|
@deniskuzZ please review this patch |
# Conflicts: # ql/src/java/org/apache/hadoop/hive/ql/parse/ColumnStatsAutoGatherContext.java
|
these indentations issues which sonar pointed out doesn't make sense because if I'll change the indentation of case statements from 6 to 4 then then will align with return statement as it is at indentation 4 so keeping it as it is and ignoring those and addressed all the others which were pointed earlier |
|



What changes were proposed in this pull request?
added getEffectivePartCols() in most places possible to avoid code duplication.
Why are the changes needed?
getPartCols() does not have support for iceberg tables.
Does this PR introduce any user-facing change?
No
How was this patch tested?
ci tests and local build