allisonwang-db commented on code in PR #47645:
URL: https://github.com/apache/spark/pull/47645#discussion_r1707933924
##########
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:
Is this really a bug? if the dataframe contains more than one row, then
df.limit(2).collect() would fail, but limit(1) can pass. cc @davidm-db
--
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]