This is an automated email from the ASF dual-hosted git repository.

leonard pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/master by this push:
     new 58a41c9  [FLINK-26739][hive] Support minor version 2.3.8 and 2.3.9 of 
Hive
58a41c9 is described below

commit 58a41c9cae2d66404691dbfefb36e565fedcbb03
Author: Cheng Pan <pan3...@gmail.com>
AuthorDate: Sat Apr 2 20:57:35 2022 +0800

    [FLINK-26739][hive] Support minor version 2.3.8 and 2.3.9 of Hive
    
    This closes #19167.
---
 .../table/catalog/hive/client/HiveShimLoader.java  |  8 ++++++++
 .../table/catalog/hive/client/HiveShimV238.java    | 22 ++++++++++++++++++++++
 .../table/catalog/hive/client/HiveShimV239.java    | 22 ++++++++++++++++++++++
 3 files changed, 52 insertions(+)

diff --git 
a/flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/catalog/hive/client/HiveShimLoader.java
 
b/flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/catalog/hive/client/HiveShimLoader.java
index d545232..b3db8d7 100644
--- 
a/flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/catalog/hive/client/HiveShimLoader.java
+++ 
b/flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/catalog/hive/client/HiveShimLoader.java
@@ -50,6 +50,8 @@ public class HiveShimLoader {
     public static final String HIVE_VERSION_V2_3_5 = "2.3.5";
     public static final String HIVE_VERSION_V2_3_6 = "2.3.6";
     public static final String HIVE_VERSION_V2_3_7 = "2.3.7";
+    public static final String HIVE_VERSION_V2_3_8 = "2.3.8";
+    public static final String HIVE_VERSION_V2_3_9 = "2.3.9";
     public static final String HIVE_VERSION_V3_1_0 = "3.1.0";
     public static final String HIVE_VERSION_V3_1_1 = "3.1.1";
     public static final String HIVE_VERSION_V3_1_2 = "3.1.2";
@@ -124,6 +126,12 @@ public class HiveShimLoader {
                     if (v.startsWith(HIVE_VERSION_V2_3_7)) {
                         return new HiveShimV237();
                     }
+                    if (v.startsWith(HIVE_VERSION_V2_3_8)) {
+                        return new HiveShimV238();
+                    }
+                    if (v.startsWith(HIVE_VERSION_V2_3_9)) {
+                        return new HiveShimV239();
+                    }
                     if (v.startsWith(HIVE_VERSION_V3_1_0)) {
                         return new HiveShimV310();
                     }
diff --git 
a/flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/catalog/hive/client/HiveShimV238.java
 
b/flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/catalog/hive/client/HiveShimV238.java
new file mode 100644
index 0000000..c6e51fe
--- /dev/null
+++ 
b/flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/catalog/hive/client/HiveShimV238.java
@@ -0,0 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.flink.table.catalog.hive.client;
+
+/** Shim for Hive version 2.3.8. */
+public class HiveShimV238 extends HiveShimV237 {}
diff --git 
a/flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/catalog/hive/client/HiveShimV239.java
 
b/flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/catalog/hive/client/HiveShimV239.java
new file mode 100644
index 0000000..d33fcb1
--- /dev/null
+++ 
b/flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/catalog/hive/client/HiveShimV239.java
@@ -0,0 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.flink.table.catalog.hive.client;
+
+/** Shim for Hive version 2.3.9. */
+public class HiveShimV239 extends HiveShimV238 {}

Reply via email to