ulysses-you commented on code in PR #6688:
URL: https://github.com/apache/kyuubi/pull/6688#discussion_r1764322007
##########
externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/operation/PlanOnlyStatement.scala:
##########
@@ -59,7 +59,7 @@ class PlanOnlyStatement(
override protected def resultSchema: StructType = {
if (result == null) {
new StructType().add("plan", "string")
- } else if (result.isEmpty) {
+ } else if (result.schema.isEmpty) {
Review Comment:
If I ger it correctly, when we go into thie else if branch, that means the
query is in `planExcludes` ? We return the result rather than the plan. Can we
add a new flag to distinguish them ? I'm not sure if the result schema of
`planExcludes` is always empty.
--
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]