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

 ##########
 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:
   I agree. Let's add a test for a `DateType` at least to validate that 
`convertLiteral` is called.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to