use saveParquet method to ensure mergerel output is compressed

This commit is contained in:
Giambattista Bloisi 2023-10-16 10:48:38 +02:00
parent 6cf64d5d8b
commit 9fa125b16f
1 changed files with 1 additions and 2 deletions

View File

@ -155,8 +155,7 @@ public class SparkCreateMergeRels extends AbstractSparkAction {
(FlatMapFunction<ConnectedComponent, Relation>) cc -> ccToMergeRel(cc, dedupConf), (FlatMapFunction<ConnectedComponent, Relation>) cc -> ccToMergeRel(cc, dedupConf),
Encoders.bean(Relation.class)); Encoders.bean(Relation.class));
mergeRels.write().mode(SaveMode.Overwrite).parquet(mergeRelPath); saveParquet(mergeRels, mergeRelPath, SaveMode.Overwrite);
} }
} }