juliuszsompolski commented on a change in pull request #28155: [SPARK-31387] 
Handle unknown operation/session ID in HiveThriftServer2Listener
URL: https://github.com/apache/spark/pull/28155#discussion_r406269897
 
 

 ##########
 File path: 
sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/service/cli/session/HiveSessionImplSuite.scala
 ##########
 @@ -0,0 +1,68 @@
+/*
+ * 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.spark.sql.hive.service.cli.session
+
+import org.apache.hadoop.hive.conf.HiveConf
+import org.apache.hive.service.cli.operation.{GetCatalogsOperation, 
OperationManager}
+import org.apache.hive.service.cli.session.{HiveSessionImpl, SessionManager}
+import org.apache.hive.service.rpc.thrift.TProtocolVersion
 
 Review comment:
   https://github.com/apache/spark/pull/28155/checks?check_run_id=571648817
   ```
   [ERROR] [Error] 
/home/runner/work/spark/spark/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/service/cli/session/HiveSessionImplSuite.scala:22:
 object rpc is not a member of package org.apache.hive.service
   [ERROR] [Error] 
/home/runner/work/spark/spark/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/service/cli/session/HiveSessionImplSuite.scala:37:
 not found: value TProtocolVersion
   [ERROR] two errors found
   [ERROR] Failed to execute goal 
net.alchim31.maven:scala-maven-plugin:4.3.0:testCompile 
(scala-test-compile-first) on project spark-hive-thriftserver_2.12: Execution 
scala-test-compile-first of goal 
net.alchim31.maven:scala-maven-plugin:4.3.0:testCompile failed.: CompileFailed 
-> [Help 1]
   ```
   You can use `ThriftserverShimUtils.testedProtocolVersions(0)` to make it 
work with both hive-1.2 and hive-2.3 profile.
   You must import TProtocolVersion from 

----------------------------------------------------------------
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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to