You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "jamb2024 (via GitHub)" <gi...@apache.org> on 2024/04/17 14:26:46 UTC

[I] [SUPPORT] Order rows with same key before precombine [hudi]

jamb2024 opened a new issue, #11041:
URL: https://github.com/apache/hudi/issues/11041

   I have an use case where I would like to use hudi. I have to process several inserts, updates and deletes indicated in a file. The file can have lots of rows for the same key and I have to combine it in order using a file. I have developed my own Payload but I can process the rows in order. I have used the options **hoodie.datasource.write.precombine.field** to indicate the precombine field and **hoodie.payload.ordering.field** to order by the same field but it didn't work.
   Also, I have tested using repartition and sort functions in the spark code before saving hudi but it didn't work either.


-- 
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: commits-unsubscribe@hudi.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [SUPPORT] Order rows with same key before precombine [hudi]

Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on issue #11041:
URL: https://github.com/apache/hudi/issues/11041#issuecomment-2062788935

   Currently only internal `HFile` enables the sort of payloads within a file, for PARQUETs in the dataset table, the merge would break the sequence in anyway. Take https://github.com/apache/hudi/blob/6c6bddcef3ec383b08eb10f10ab0400f4edc41f4/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieMergeHandleFactory.java#L54 for a reference.
   
   I guess you might want to make the sorting configurable.


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org