paulpaul1076 commented on issue #8809: URL: https://github.com/apache/iceberg/issues/8809#issuecomment-1759723529
@RussellSpitzer provided this code which achieves the same: ``` foreachBatch (batch_df, batch_id) => { val lastBatch = Spark3Util.loadIcebergTable(spark,"db.timezoned").currentSnapshot().summary()(STREAMID) if (batch_id > lastBatch) { batch_df.writeTo(...).option("snapshot-property."+STREAMID, batch_id).....append } } ``` But I wonder if delta lake if faster here, because I assume that this metadata lookup `Spark3Util.loadIcebergTable(spark,"db.timezoned").currentSnapshot().summary()(STREAMID)` goes to S3? -- 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-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org