You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "Fokko (via GitHub)" <gi...@apache.org> on 2023/03/06 11:21:18 UTC
[GitHub] [iceberg] Fokko commented on issue #7022: Function filters() is unless on flink datastream api when iceberg table is stored by parquet format
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org