qlong commented on code in PR #15385:
URL: https://github.com/apache/iceberg/pull/15385#discussion_r3278450662


##########
spark/v4.1/spark/src/main/java/org/apache/iceberg/spark/SparkV2Filters.java:
##########
@@ -354,7 +354,21 @@ private static <T> T childAtIndex(Predicate predicate, int 
index) {
 
   private static boolean canConvertToTerm(
       org.apache.spark.sql.connector.expressions.Expression expr) {
-    return isRef(expr) || isSystemFunc(expr);
+    return isRef(expr) || isSystemFunc(expr) || isVariantGetFunc(expr);
+  }
+
+  private static boolean isVariantGetFunc(
+      org.apache.spark.sql.connector.expressions.Expression expr) {

Review Comment:
   Good catch — will add `import 
org.apache.spark.sql.connector.expressions.Expression` and use the short name 
in `canConvertToTerm`, `isVariantGetFunc`, `isRef`, and `isLiteral` for 
consistency with the rest of the file.



-- 
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]

Reply via email to