michael1991 commented on issue #10828:
URL: https://github.com/apache/hudi/issues/10828#issuecomment-1980451478

   Thanks for your quick response! @ad1happy2go 
   
   Spark writer configuration:
   ```scala
   newDetails.write.format("hudi")
             .option(RECORDKEY_FIELD.key(), "id")
             .option(PRECOMBINE_FIELD.key(), "id")
             .option(SCHEMA_EVOLUTION_ENABLED.key(), "true")
             .option(DATABASE_NAME.key(), "db_prod")
             .option(INDEX_TYPE.key(), "BLOOM")
             .option(COMBINE_BEFORE_UPSERT.key(), "false")
             .option(INSERT_PARALLELISM_VALUE.key(), "30")
             .option(UPSERT_PARALLELISM_VALUE.key(), "200")
             .option(CLEANER_COMMITS_RETAINED.key(), "4")
             .option(ASYNC_CLEAN.key(), "false")
             .option(PARTITIONPATH_FIELD.key(), "req_date,req_hour")
             .option(TBL_NAME.key(), TBL_LOG_INCREMENT_DETAILS_NAME)
             .option(OPERATION.key(), INSERT_OPERATION_OPT_VAL)
             .option(WRITE_PAYLOAD_CLASS_NAME.key(), CUSTOM_PAYLOAD_CLASS)
             .option(COPY_ON_WRITE_RECORD_SIZE_ESTIMATE.key(), "64")
             .mode(SaveMode.Append).save(TBL_LOG_INCREMENT_DETAILS_PATH)
   ```
   
   Schema just like: id string, req_date string, req_hour string, etc.


-- 
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]

Reply via email to