lokeshj1703 commented on code in PR #11638:
URL: https://github.com/apache/hudi/pull/11638#discussion_r1696814748


##########
hudi-client/hudi-spark-client/src/main/scala/org/apache/hudi/util/SparkKeyGenUtils.scala:
##########
@@ -65,10 +74,15 @@ object SparkKeyGenUtils {
     // For CustomKeyGenerator and CustomAvroKeyGenerator, the partition path 
filed format
     // is: "field_name: field_type", we extract the field_name from the 
partition path field.
     if (baseKeyGen.isInstanceOf[CustomKeyGenerator] || 
baseKeyGen.isInstanceOf[CustomAvroKeyGenerator]) {
-      
typedProperties.getString(KeyGeneratorOptions.PARTITIONPATH_FIELD_NAME.key())
-        .split(",").map(pathField => {
-        pathField.split(CustomAvroKeyGenerator.SPLIT_REGEX)
-          .headOption.getOrElse(s"Illegal partition path field format: 
'$pathField' for ${baseKeyGen}")}).mkString(",")
+      val partitionFields = 
typedProperties.getString(KeyGeneratorOptions.PARTITIONPATH_FIELD_NAME.key())
+      if (includeType) {
+        partitionFields
+      } else {
+        partitionFields.split(",").map(pathField => {

Review Comment:
   Addressed



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