zhongyujiang commented on code in PR #7346:
URL: https://github.com/apache/iceberg/pull/7346#discussion_r1166823764


##########
spark/v3.3/spark/src/test/java/org/apache/iceberg/spark/sql/TestFilterPushDown.java:
##########
@@ -516,6 +516,25 @@ public void 
testFilterPushdownWithSpecialFloatingPointPartitionValues() {
         ImmutableList.of(row(4, Double.NEGATIVE_INFINITY)));
   }
 
+  @Test
+  public void testNullabilityPredicatesOnNestedFieldsPushDown() {
+    sql(
+        "CREATE TABLE %s (id INT, point struct<x: BIGINT NOT NULL, y: BIGINT 
NOT NULL>)"
+            + "USING iceberg ",
+        tableName);
+    sql("INSERT INTO %s VALUES(1, struct(0, 0)), (2, null)", tableName);
+
+    checkOnlyIcebergFilters(
+        "point.x IS NULL" /* query predicate */,
+        "point.x IS NULL" /* Iceberg scan filters */,

Review Comment:
   This query returns no rows without this PR.



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