greg-roberts-bbc commented on issue #7226:
URL: https://github.com/apache/iceberg/issues/7226#issuecomment-2049509117

   @stevenlii 
   
   > But this way there is no checkpointLocation. How do you manage the offset?
   
   As I said, we're using `GlueContext.forEachBatch` which allows you to 
specify the checkpoint location as follows:
   
   ```
   glue_context.forEachBatch(
       frame=read_stream,
       batch_function=process_batch,
       options={
           "windowSize": job_args["TRIGGER_PROCESSING_TIME"],
           "fanout-enabled": job_args["FANOUT_ENABLED"],
           "checkpointLocation": job_args["CHECKPOINT_LOCATION"],
           "persistDataFrame": "false",
       }
   )
   ```
   
   The equivalent call to `writeStream.forEachBatch` would be something like:
   
   
`read_stream.writeStream.foreachBatch(process_batch).trigger(processingTime=windowSize).option("checkpointLocation",
 checkpointLocation)`
   
   As can be seen in the Glue source code I linked above, here: 
https://github.com/awslabs/aws-glue-libs/blob/master/awsglue/context.py#L641
   
   


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

Reply via email to