ad1happy2go commented on issue #9635: URL: https://github.com/apache/hudi/issues/9635#issuecomment-1748785397
Thanks @Zouxxyy @KnightChess . Sorry for the delay. With new HoodieSparkRecordMerger api it is working fine. Created JIRA to fix this inconsistency for HoodieAvroRecordMerger. - https://issues.apache.org/jira/browse/HUDI-6918 ``` spark.sql( s"""create table if not exists ${tableName} ( id int, name string, price double, ts string) using hudi tblproperties ( type = 'mor', primaryKey = 'id', preCombineField = 'ts', "hoodie.datasource.write.record.merger.impls" = "org.apache.hudi.HoodieSparkRecordMerger", "hoodie.logfile.data.block.format" = "parquet" )""") spark.sql(s"""insert into ${tableName} values (1, "a5", 10.0, "2021-01-05"); """) spark.sql(s"""insert into ${tableName} values (1, "a3", 10.0, "2021-01-03"); """) spark.read.table(tableName).show() ``` -- 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]
