deniskuzZ commented on code in PR #6990:
URL: https://github.com/apache/hive/pull/6990#discussion_r4741538906
##########
ql/src/java/org/apache/hadoop/hive/ql/metadata/VirtualColumn.java:
##########
@@ -184,4 +185,13 @@ public static boolean
isVirtualColumnBasedOnAlias(ColumnInfo column) {
}
return false;
}
+
+ /**
+ * Whether the expression reads a virtual column. No virtual column is a
column of the table's data, so a storage
+ * handler cannot evaluate a predicate that reads one.
+ */
+ public static boolean readsVirtualColumn(ExprNodeDesc expr) {
Review Comment:
maybe better `containsVirtualColumn` (similar to
`ExprNodeDescUtils`.containsPredicate)?
--
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]