Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2023 03:46 AM
@Sanjay Jain sorry missed one thing. .trigger(once=True) doesn't support rate limiters. You can use .trigger(availableNow=True) instead.
spark.readStream.format("delta")
.option("maxFilesPerTrigger", 200)
.load(silver_path)
.writeStream
.option("checkpointLocation", gold_checkpoint_path)
.trigger(availableNow=True)
.foreachBatch(foreachBatchFunction)
.start()