HyukjinKwon commented on a change in pull request #22903: [SPARK-24196][SQL]
Implement Spark's own GetSchemasOperation
URL: https://github.com/apache/spark/pull/22903#discussion_r244118170
##########
File path:
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/server/SparkSQLOperationManager.scala
##########
@@ -63,6 +63,19 @@ private[thriftserver] class SparkSQLOperationManager()
operation
}
+ override def newGetSchemasOperation(
+ parentSession: HiveSession,
+ catalogName: String,
+ schemaName: String): GetSchemasOperation = synchronized {
+ val sqlContext = sessionToContexts.get(parentSession.getSessionHandle)
+ require(sqlContext != null, s"Session handle:
${parentSession.getSessionHandle} has not been" +
+ s" initialized or had already closed.")
Review comment:
nit .. : `s` can be removed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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]