From 2580572ebe0535d144ed7d58a5f2117a35bbb84c Mon Sep 17 00:00:00 2001 From: zhangliang Date: Wed, 29 Jun 2022 15:01:45 +0800 Subject: [PATCH] [KYUUBI #2960] TFrontendService.SERVER_VERSION shall be HIVE_CLI_SERVICE_PROTOCOL_V11 ### _Why are the changes needed?_ 1. bugfix for issue #2960 ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [ ] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #2961 from CavemanIV/kyuubi-2960. Closes #2960 8aa38eb9 [zhangliang] TFrontendService always use newest hive cli TProtocolVersion 25e5110e [zhangliang] [KYUUBI #2960] TFrontendService.SERVER_VERSION shall be HIVE_CLI_SERVICE_PROTOCOL_V11 Authored-by: zhangliang Signed-off-by: Fei Wang (cherry picked from commit cf27278fd9e3b47a0450eac5f37e191edef0051d) Signed-off-by: Fei Wang --- .../main/scala/org/apache/kyuubi/service/TFrontendService.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kyuubi-common/src/main/scala/org/apache/kyuubi/service/TFrontendService.scala b/kyuubi-common/src/main/scala/org/apache/kyuubi/service/TFrontendService.scala index 51884a317..74b0b0ffd 100644 --- a/kyuubi-common/src/main/scala/org/apache/kyuubi/service/TFrontendService.scala +++ b/kyuubi-common/src/main/scala/org/apache/kyuubi/service/TFrontendService.scala @@ -544,7 +544,7 @@ private[kyuubi] object TFrontendService { final val CURRENT_SERVER_CONTEXT = new ThreadLocal[FeServiceServerContext]() - final val SERVER_VERSION = TProtocolVersion.HIVE_CLI_SERVICE_PROTOCOL_V10 + final val SERVER_VERSION = TProtocolVersion.values.max class FeServiceServerContext extends ServerContext { private var sessionHandle: SessionHandle = _