cxzl25 commented on code in PR #3216:
URL: https://github.com/apache/incubator-kyuubi/pull/3216#discussion_r942424832
##########
externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/operation/SparkSQLOperationManager.scala:
##########
@@ -69,6 +69,11 @@ class SparkSQLOperationManager private (name: String)
extends OperationManager(n
OperationLanguages.withName(lang.toUpperCase(Locale.ROOT)) match {
case OperationLanguages.SQL =>
val mode = spark.conf.get(OPERATION_PLAN_ONLY_MODE.key,
operationModeDefault)
+ if
(!OperationModes.values.exists(_.toString.equalsIgnoreCase(mode))) {
+ spark.conf.unset(OPERATION_PLAN_ONLY_MODE.key)
+ throw new NoSuchElementException(s"Unsupported operation mode:
$mode," +
+ s" unset kyuubi.operation.plan.only.mode")
Review Comment:
s"unset ${OPERATION_PLAN_ONLY_MODE.key}"
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]