panbingkun commented on code in PR #47645:
URL: https://github.com/apache/spark/pull/47645#discussion_r1708091951


##########
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:
   Oh, you're right. Indeed, I misunderstood this logic. Let me close it.



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

Reply via email to