eyjian opened a new issue, #8703:
URL: https://github.com/apache/hudi/issues/8703
Hudi: 0.12.1
Flink: 0.15
Spark: 3.1
Duplicates span multiple files within the same partitionpath:
ds | ts | transcode | actid | level | _hoodie_file_name |
_hoodie_partition_path | _hoodie_record_key | _hoodie_commit_time
-- | -- | -- | -- | -- | -- | -- | -- | --
20230509 | 2023/5/10 20:11 | 1486092202305095800051572 | 300108 | 3 |
00000007-6d54-4918-9abb-6f8d48843bba_4-10-0_20230514101617270.parquet |
20230509 | transcode:1486092202305095800051572,actid:300148,level:3 |
20230510200812817
20230509 | 2023/5/14 10:11 | 1486092202305095800051572 | 300108 | 3 |
00000001-7f3b-4b8c-9b46-dff2c4987f72_4-10-0_20230514101617270.parquet |
20230509 | transcode:1486092202305095800051572,actid:300148,level:3 |
20230514100809825
```sql
CREATE TABLE `t_test_01` (
`_hoodie_commit_time` STRING,
`_hoodie_commit_seqno` STRING,
`_hoodie_record_key` STRING,
`_hoodie_partition_path` STRING,
`_hoodie_file_name` STRING,
`ds` BIGINT,
`dt` STRING,
`ts` STRING,
`transcode` STRING,
`actid` BIGINT,
`level` BIGINT
)
USING hudi
OPTIONS (
`hoodie.query.as.ro.table` 'false'
)
PARTITIONED BY (ds)
LOCATION 'hdfs://user/root/warehouse/test_db.db/t_test_01'
TBLPROPERTIES (
'type' = 'mor',
'primaryKey' = 'transcode,actid,level',
'preCombineField' = 'ts',
'connector' = 'hudi',
'hoodie.bucket.index.num.buckets' = '19',
'hoodie.index.type' = 'BUCKET',
'hoodie.datasource.write.recordkey.field' = 'transcode,actid,level',
'hoodie.table.name' = 't_test',
'hoodie.table.precombine.field' = 'ts'
);
```
```sql
INSERT INTO t_test_01
SELECT
ds,
dt,
DATE_FORMAT(CURRENT_TIMESTAMP,'yyyy-MM-dd HH:mm:ss') AS ts,
transcode,
actid,
level
FROM t_test_02;
```
Can not use the records deduplicate command to fix for no permissions.
--
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]