kbendick commented on a change in pull request #2062:
URL: https://github.com/apache/iceberg/pull/2062#discussion_r568264237
##########
File path: spark2/src/main/java/org/apache/iceberg/spark/SparkFilters.java
##########
@@ -135,6 +136,13 @@ public static Expression convert(Filter filter) {
case NOT:
Not notFilter = (Not) filter;
+ Filter sparkChild = notFilter.child();
+ // Special case to use the Iceberg NOT_STARTS_WITH operator for
+ // Not(StringStartsWith) to allow filter push down.
+ if (sparkChild instanceof StringStartsWith) {
+ StringStartsWith castedChild = (StringStartsWith) sparkChild;
+ return notStartsWith(castedChild.attribute(), castedChild.value());
+ }
Review comment:
Yeah I removed this and tested everything and it seems fine to go.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]