HariprasadAllaka1612 commented on issue #933: Support for multiple level 
partitioning in Hudi
URL: https://github.com/apache/incubator-hudi/issues/933#issuecomment-537360583
 
 
   I found the way to do this, For anyone's reference this can be achieved by
   
   1. Use org.apache.hudi.ComplexKeyGenerator as key generator class instead of 
SimpleKeyGenerator.
   2. Provide the fields that you want to partition based on as comma separated 
string as PARITION_FIELD_OPT_KEY
   
   Reference : 
   
https://github.com/apache/incubator-hudi/blob/master/hudi-spark/src/main/java/org/apache/hudi/ComplexKeyGenerator.java#L42

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to