Fokko commented on issue #7022:
URL: https://github.com/apache/iceberg/issues/7022#issuecomment-1455951607

   I can confirm:
   ```
   public class TestFokko {
       @Test
       public void testFokkoLoadTable() throws Exception {
           StreamExecutionEnvironment env = 
StreamExecutionEnvironment.createLocalEnvironment();
   
           Map<String, String> properties = new HashMap<>();
   
           properties.put("uri", "http://localhost:8181";);
           properties.put("s3.access-key-id", "admin");
           properties.put("s3.secret-access-key", "password");
           properties.put("s3.endpoint", "http://localhost:9000";);
   
           CatalogLoader catalog = CatalogLoader.custom(
                   "rest",
                   properties,
                   new Configuration(true),
                   "org.apache.iceberg.rest.RESTCatalog"
           );
   
           TableLoader tableLoader = TableLoader.fromCatalog(catalog, 
TableIdentifier.of("nyc", "taxis_vendors"));
           DataStream<RowData> batch = FlinkSource.forRowData()
                   .env(env)
                   .tableLoader(tableLoader)
                   .streaming(false)
                   
.filters(Arrays.asList(Expressions.greaterThanOrEqual("VendorID", 2)))
                   .build();
   
           batch.addSink(new SinkFunction<RowData>() {
               @Override
               public void invoke(RowData value) {
                   System.out.println(value.getInt(0));
               }
           });
           env.execute("Test Iceberg Batch Read");
       }
   }
   ```
   
   In the output I don't see any filtering.


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