ramitg254 commented on code in PR #6413:
URL: https://github.com/apache/hive/pull/6413#discussion_r3378824258
##########
ql/src/java/org/apache/hadoop/hive/ql/metadata/Table.java:
##########
@@ -762,14 +836,18 @@ private List<FieldSchema> getColsInternal(boolean forMs) {
* @return List<FieldSchema>
*/
public List<FieldSchema> getAllCols() {
- ArrayList<FieldSchema> f_list = new ArrayList<FieldSchema>();
- f_list.addAll(getCols());
- f_list.addAll(getPartCols());
- return f_list;
+ List<FieldSchema> fsList = new ArrayList<>(getColsInternal(false));
+ if (!hasNonNativePartitionSupport()) {
+ fsList.addAll(getPartitionKeys());
Review Comment:
getPartitionKeys() are only setted for thrift table which is tTable and is
only limited to native tables not for iceberg tables which are backed by
storageHandler
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]