zhedoubushishi commented on a change in pull request #1001: [HUDI-325] Fix Hive
partition error for updated HDFS Hudi table
URL: https://github.com/apache/incubator-hudi/pull/1001#discussion_r350929621
##########
File path: hudi-hive/src/main/java/org/apache/hudi/hive/HoodieHiveClient.java
##########
@@ -192,7 +192,9 @@ private String getPartitionClause(String partition) {
String alterTable = "ALTER TABLE " + syncConfig.tableName;
for (String partition : partitions) {
String partitionClause = getPartitionClause(partition);
- String fullPartitionPath = FSUtils.getPartitionPath(syncConfig.basePath,
partition).toString();
+ Path partitionPath = FSUtils.getPartitionPath(syncConfig.basePath,
partition);
+ String fullPartitionPath =
!partitionPath.toUri().getScheme().equals("hdfs") ? partitionPath.toString()
Review comment:
That make sense. Replaced.
----------------------------------------------------------------
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