deniskuzZ commented on code in PR #6990:
URL: https://github.com/apache/hive/pull/6990#discussion_r4738180789
##########
ql/src/java/org/apache/hadoop/hive/ql/parse/DeleteSemanticAnalyzer.java:
##########
@@ -159,6 +162,18 @@ private SearchArgument convertFilterExpressionInTS(Table
table, BaseSemanticAnal
return result.getSearchArgument();
}
+ /**
+ * Whether Hive filters the scan on a virtual column. A storage handler
cannot evaluate a virtual column, so the
+ * filter pushed to it leaves out the conjuncts that read one: deleting the
files that filter matches would also
+ * delete the rows those conjuncts exclude.
+ */
+ private static boolean filtersOnVirtualColumn(TableScanOperator tableScan) {
Review Comment:
Please switch to the shared helper:
````
.map(op -> ((FilterOperator) op).getConf().getPredicate())
.anyMatch(VirtualColumn::readsVirtualColumn);
````
--
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]