aokolnychyi commented on a change in pull request #749: Convert Spark In filter 
to iceberg IN Expression
URL: https://github.com/apache/incubator-iceberg/pull/749#discussion_r371261479
 
 

 ##########
 File path: 
spark/src/test/java/org/apache/iceberg/spark/source/TestFilteredScan.java
 ##########
 @@ -425,6 +426,21 @@ public void testFilterByNonProjectedColumn() {
     }
   }
 
+  @Test
+  public void testInFilter() {
+    File location = buildPartitionedTable("partitioned_by_data", 
PARTITION_BY_DATA, "data_ident", "data");
+
+    DataSourceOptions options = new DataSourceOptions(ImmutableMap.of(
+        "path", location.toString())
+    );
+
+    IcebergSource source = new IcebergSource();
+    DataSourceReader reader = source.createReader(options);
+    pushFilters(reader, new In("data", new String[]{"foo", "junction", 
"brush"}));
 
 Review comment:
   Will it be hard to add tests for a couple of other data types?

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to