deniskuzZ commented on code in PR #6600:
URL: https://github.com/apache/hive/pull/6600#discussion_r3658100158
##########
ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java:
##########
@@ -2984,50 +2985,57 @@ private RelNode genTableLogicalPlan(String tableAlias,
QB qb) throws SemanticExc
// NOTE: Table logical schema = Non Partition Cols + Partition Cols +
// Virtual Cols
- // 3.1 Add Column info for non partion cols (Object Inspector fields)
+ // 3.1 Add Column info for cols (Object Inspector fields)
final Deserializer deserializer = tabMetaData.getDeserializer();
StructObjectInspector rowObjectInspector = (StructObjectInspector)
deserializer
.getObjectInspector();
deserializer.handleJobLevelConfiguration(conf);
List<? extends StructField> fields =
rowObjectInspector.getAllStructFieldRefs();
- ColumnInfo colInfo;
- String colName;
- ArrayList<ColumnInfo> cInfoLst = new ArrayList<>();
-
final NotNullConstraint nnc = tabMetaData.getNotNullConstraint();
final PrimaryKeyInfo pkc = tabMetaData.getPrimaryKeyInfo();
+ int allColCount = tabMetaData.getAllCols().size();
+ List<ColumnInfo> colInfoList = new
ArrayList<>(Collections.nCopies(allColCount, null));
+ Set<String> partColNames = new
HashSet<>(tabMetaData.getPartColNames());
+ ArrayList<ColumnInfo> nonPartitionColumns = new
ArrayList<>(fields.size());
Review Comment:
code to interface
--
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]