This is an automated email from the ASF dual-hosted git repository.
vinoth pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hudi.git
The following commit(s) were added to refs/heads/master by this push:
new 4529f53 [MINOR] Add backtick escape while syncing partition fields
(#967)
4529f53 is described below
commit 4529f535b26496ec838bd6cd6673a53f42b766e2
Author: Amit Prabhu <[email protected]>
AuthorDate: Wed Oct 23 08:46:16 2019 +0530
[MINOR] Add backtick escape while syncing partition fields (#967)
---
hudi-hive/src/main/java/org/apache/hudi/hive/HoodieHiveClient.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hudi-hive/src/main/java/org/apache/hudi/hive/HoodieHiveClient.java
b/hudi-hive/src/main/java/org/apache/hudi/hive/HoodieHiveClient.java
index d1882e2..7b5aa8a 100644
--- a/hudi-hive/src/main/java/org/apache/hudi/hive/HoodieHiveClient.java
+++ b/hudi-hive/src/main/java/org/apache/hudi/hive/HoodieHiveClient.java
@@ -179,7 +179,7 @@ public class HoodieHiveClient {
+ ". Check partition strategy. ");
List<String> partBuilder = new ArrayList<>();
for (int i = 0; i < syncConfig.partitionFields.size(); i++) {
- partBuilder.add(syncConfig.partitionFields.get(i) + "=" + "'" +
partitionValues.get(i) + "'");
+ partBuilder.add("`" + syncConfig.partitionFields.get(i) + "`=" + "'" +
partitionValues.get(i) + "'");
}
return partBuilder.stream().collect(Collectors.joining(","));
}