liujinhui1994 opened a new issue, #9714:
URL: https://github.com/apache/hudi/issues/9714
**Describe the problem you faced**
After turning on metadata for my task, I found that the data was duplicated.
;
**To Reproduce**
Steps to reproduce the behavior:
dataFrame.write().format("org.apache.hudi")
.option("hoodie.datasource.write.recordkey.field", "uuid")
.option("hoodie.datasource.write.partitionpath.field", “ds”)
.option("hoodie.parquet.small.file.limit", 128 * 1024 * 1024)
.option("hoodie.datasource.hive_sync.partition_fields", DS_)
.option("hoodie.deltastreamer.keygen.timebased.timestamp.type",
"DATE_STRING")
.option("hoodie.upsert.shuffle.parallelism", 200)
.option("hoodie.datasource.write.operation", "upsert")
.option("hoodie.datasource.write.precombine.field", "time")
.option("hoodie.datasource.write.keygenerator.class",
"org.apache.hudi.keygen.ComplexKeyGenerator")
.option("hoodie.datasource.write.table.type", "MERGE_ON_READ")
.option("hoodie.embed.timeline.server", true)
.option("hoodie.datasource.write.streaming.ignore.failed.batch",
false)
.option("hoodie.cleaner.commits.retained", "15")
.option("hoodie.datasource.hive_sync.table_properties",
"spark.sql.partitionProvider=catalog")
.option("hoodie.keep.min.commits", 25)
.option("hoodie.keep.max.commits", 30)
.option("hoodie.clean.async", false)
.option("hoodie.table.name", getIncHoodieTableName(cfg.dataBase,
cfg.tableName, cfg.model))
.option("hoodie.datasource.write.payload.class","org.apache.hudi.common.model.DefaultHoodieRecordPayload")
.option("hoodie.payload.event.time.field", “ts”)
.option("hoodie.payload.ordering.field", “ts”)
.option("hoodie.write.markers.type", "DIRECT")
.option("hoodie.finalize.write.parallelism", cfg.parallelism)
.option("hoodie.rollback.parallelism", cfg.parallelism)
.option("hoodie.metadata.enable", "true")
.option("hoodie.metadata.index.bloom.filter.enable", "true")
.option("hoodie.metadata.index.column.stats.enable", "true")
.option("hoodie.metadata.index.column.stats.column.list", "uuid")
.option("hoodie.bloom.index.use.metadata", "true")
.options(map)
.mode(Append)
.save("G:/LJH111/datalake/data/dls/mysql/test/rt/" + cfg.dataBase);
the above is the hudi config fo the task.
There was no problem before when I added the following configuration.
map.put("hoodie.metadata.enable", "true");
map.put("hoodie.metadata.index.bloom.filter.enable", "true");
map.put("hoodie.metadata.index.column.stats.enable", "true");
map.put("hoodie.metadata.index.column.stats.column.list", cfg.pk);
map.put("hoodie.bloom.index.use.metadata", "true").

1.
2.
3.
4.
**Expected behavior**
The same uuid should not appear in different filegroups.
**Environment Description**
* Hudi version : 0.11.1
* Spark version : 3.2.1
* Hive version : 3.1.0
* Hadoop version : 3.2.0
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]