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/05/11 08:01:18 UTC

[GitHub] [iceberg] Fokko commented on issue #7577: Why can't the code I wrote in FlinkSQL print out the data changes of iceberg in real time?

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

   @starslink I tried it on my end with S3+REST Catalog, which should be equivalent, and it works on my end:
   
   https://www.loom.com/share/c6e126e5f5cf463c8a5b649cadce66da
   
   I reduced the number of options:
   ```java
   StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
   EnvironmentSettings environmentSettings = EnvironmentSettings.newInstance().inStreamingMode().build();
   StreamTableEnvironment tEnv = StreamTableEnvironment.create(env, environmentSettings);
   Configuration configuration = tEnv.getConfig().getConfiguration();
   configuration.setString("pipeline.name", "GetCustomerToIceBerg");
   configuration.setBoolean("table.dynamic-table-options.enabled", true);
   
   tEnv.executeSql("CREATE CATALOG my_catalog WITH ('type'='iceberg','catalog-type'='rest','uri'='https://api.tabular.io/ws','credential'='abc','warehouse'='sandbox')");
   tEnv.useCatalog("my_catalog");
   tEnv.useDatabase("default");
   tEnv.executeSql(
   		"select * from t1 /*+ OPTIONS('streaming'='true', 'monitor-interval'='1s')*/;").print();
   ```
   


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