Hi team, I am trying to insert data to iceberg tab...
# troubleshooting
s
Hi team, I am trying to insert data to iceberg table by creating insert statement (table api) based on avro schema of a particular event. The below code is creating multiple jobs being submitted to cluster instead of operator chaining. Can someone please provide an alternative ?
Copy code
dataStream.executeAndCollect().forEachRemaining(tuple -> insertDataToIceberg(tuple.f0.getSchema(), tuple.f0, tableEnv, env));
Can anyone please provide an alternative for executeAndCollect() wherein i could use StreamTableEnvironment. I tried using Map, Flatmap but getting error that StreamTableEnvironment is not serializable.