davidm-db commented on code in PR #47645:
URL: https://github.com/apache/spark/pull/47645#discussion_r1708831447
##########
sql/core/src/main/scala/org/apache/spark/sql/scripting/SqlScriptingExecutionNode.scala:
##########
@@ -76,7 +76,7 @@ trait NonLeafStatementExec extends CompoundStatementExec {
val df = Dataset.ofRows(session, statement.parsedPlan)
df.schema.fields match {
case Array(field) if field.dataType == BooleanType =>
- df.limit(2).collect() match {
+ df.limit(1).collect() match {
Review Comment:
@panbingkun yes, what Allison said is correct, if there are multiple rows in
the result, then we don't want to return `true`.
--
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]