kasakrisz commented on a change in pull request #3121:
URL: https://github.com/apache/hive/pull/3121#discussion_r832123658
##########
File path: ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java
##########
@@ -3119,65 +3123,24 @@ private RelNode genTableLogicalPlan(String tableAlias,
QB qb) throws SemanticExc
return tableRel;
}
- private RelDataType inferNotNullableColumns(Table tabMetaData, RelDataType
rowType)
- throws HiveException {
- final NotNullConstraint nnc = tabMetaData.getNotNullConstraint();
- final PrimaryKeyInfo pkc = tabMetaData.getPrimaryKeyInfo();
- if ((nnc == null || nnc.getNotNullConstraints().isEmpty()) &&
- (pkc == null || pkc.getColNames().isEmpty())) {
- return rowType;
+ private boolean isNullable(String colName, NotNullConstraint
notNullConstraints, PrimaryKeyInfo primaryKeyInfo) {
+ if (notNullConstraints == null && primaryKeyInfo == null) {
+ return true;
}
Review comment:
Removed
--
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]