You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/02/08 12:01:56 UTC

[GitHub] [iceberg] hililiwei commented on issue #3905: how to consume historical iceberg data with flink?

hililiwei commented on issue #3905:
URL: https://github.com/apache/iceberg/issues/3905#issuecomment-1032532349


   @hbgstc123 
   
   ```
   DataStream<RowData> batch = FlinkSource.forRowData()
        .env(env)
        .tableLoader(tableLoader)
        .streaming(false)
        .filters(.......)
        .build();
   ```
   This example will read all current records from table.
   
   ```
   DataStream<RowData> stream = FlinkSource.forRowData()
        .env(env)
        .tableLoader(tableLoader)
        .streaming(true)
        .startSnapshotId(table.currentSnapshot().snapshotId())
        .filters(.......)
        .build();
   ```
   This example will read incremental records which start from current snapshot.


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