[HUDI-3107]Fix HiveSyncTool drop partitions using JDBC or hivesql or hms (#4453) 4482/head
authorYueZhang <69956021+zhangyue19921010@users.noreply.github.com>
Fri, 31 Dec 2021 07:56:33 +0000 (15:56 +0800)
committerGitHub <noreply@github.com>
Fri, 31 Dec 2021 07:56:33 +0000 (15:56 +0800)
commitef9923fc5551851ec4ee71896a62c0615da45ee8
tree5296d510c224fa10ac3c6fcd1ddbabbc38d3089f
parent2444f40a4be5bbf0bf210dee5690267a9a1e35c8
[HUDI-3107]Fix HiveSyncTool drop partitions using JDBC or hivesql or hms (#4453)

* constructDropPartitions when drop partitions using jdbc

* done

* done

* code style

* code review

Co-authored-by: yuezhang <yuezhang@freewheel.tv>
hudi-sync/hudi-hive-sync/src/main/java/org/apache/hudi/hive/ddl/HMSDDLExecutor.java
hudi-sync/hudi-hive-sync/src/main/java/org/apache/hudi/hive/ddl/HiveQueryDDLExecutor.java
hudi-sync/hudi-hive-sync/src/main/java/org/apache/hudi/hive/ddl/JDBCExecutor.java
hudi-sync/hudi-hive-sync/src/main/java/org/apache/hudi/hive/ddl/QueryBasedDDLExecutor.java
hudi-sync/hudi-hive-sync/src/main/java/org/apache/hudi/hive/util/HivePartitionUtil.java [new file with mode: 0644]
hudi-sync/hudi-hive-sync/src/test/java/org/apache/hudi/hive/TestHiveSyncTool.java
hudi-sync/hudi-hive-sync/src/test/java/org/apache/hudi/hive/testutils/HiveTestUtil.java