nsivabalan commented on issue #4675:
URL: https://github.com/apache/hudi/issues/4675#issuecomment-1025661408


   yeah. I can't think of other options. What @ganczarek suggested makes sense. 
KeyGenUtils is where hive style partitioning is enforced. 
   ```
     public static String getPartitionPath(GenericRecord record, String 
partitionPathField,
         boolean hiveStylePartitioning, boolean encodePartitionPath, boolean 
consistentLogicalTimestampEnabled) {
       String partitionPath = HoodieAvroUtils.getNestedFieldValAsString(record, 
partitionPathField, true, consistentLogicalTimestampEnabled);
       if (partitionPath == null || partitionPath.isEmpty()) {
         partitionPath = HUDI_DEFAULT_PARTITION_PATH;
       }
       if (encodePartitionPath) {
         partitionPath = PartitionPathEncodeUtils.escapePathName(partitionPath);
       }
       if (hiveStylePartitioning) {
         partitionPath = partitionPathField + "=" + partitionPath;
       }
       return partitionPath;
     }
   ```
   
   If you can put up a patch against 0.5.0, we can take a look to see if 
something is missing. Unfortunately we don't backport fixes. 
   
   
   


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