Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2023 03:20 AM
Hi,
This is working for autoloader and I am able to limit batch size. But in next layer, I am still getting full load. Is there any way to limit batch size. Here is my code.
(spark.readStream.format("delta")
.option("cloudFiles.useNotification","true")
.option("cloudFiles.includeExistingFiles","true")
.option("cloudFiles.allowOverwrites",True)
.option("ignoreMissingFiles",True)
.option("cloudFiles.maxFilesPerTrigger", 100)
.option("ignoreChanges","true")
.load(bronze_path)
.writeStream
.option("checkpointLocation", silver_checkpoint_path)
.trigger(processingTime="1 minute")
.foreachBatch(foreachBatchFunction)
.start()
)