I'm using Delta Lake 0.4.0 with Merge like:
target.alias("t")
.merge(
src.as("s"),
"s.id = t.id
)
.whenMatched().updateAll()
.whenNotMatched().insertAll()
.execute()
src reads from a folder with thousands of files. The merge results generate many small files too. Is there a way to control the file number in merge results like effect of repartition(1) or coalesce(1)?
Thanks