xicm commented on code in PR #9028:
URL: https://github.com/apache/hudi/pull/9028#discussion_r1236949491


##########
hudi-sync/hudi-hive-sync/src/main/java/org/apache/hudi/hive/util/HivePartitionUtil.java:
##########
@@ -57,7 +57,7 @@ public static String getPartitionClauseForDrop(String 
partition, PartitionValueE
         // This is a decode operator for encode in 
KeyGenUtils#getRecordPartitionPath
         partitionValue = 
PartitionPathEncodeUtils.unescapePathName(partitionValue);
       }
-      
partBuilder.add(config.getSplitStrings(META_SYNC_PARTITION_FIELDS).get(i) + "=" 
+ partitionValue);
+      
partBuilder.add(config.getSplitStrings(META_SYNC_PARTITION_FIELDS).get(i).toLowerCase()
 + "=" + partitionValue);

Review Comment:
   The query in spark sql shows the regular col is case in-sensitive.
   
   I do the test in hive too, partition field is case in-sensitive hive cli,.
   I think the reason is we use `HiveMetaStoreClient` to drop partition, there 
is no case conversion.



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