pan3793 commented on code in PR #52742:
URL: https://github.com/apache/spark/pull/52742#discussion_r2493190034


##########
sql/connect/client/jdbc/src/main/scala/org/apache/spark/sql/connect/client/jdbc/SparkConnectStatement.scala:
##########
@@ -86,7 +88,10 @@ class SparkConnectStatement(conn: SparkConnectConnection) 
extends Statement {
     operationId = null
     resultSet = null
 
-    val df = conn.spark.sql(sql)
+    var df = conn.spark.sql(sql)
+    if (limitRow > 0) {
+      df = df.limit(limitRow)

Review Comment:
   Do you mean duplicated `LIMIT`? I think it does not matter as long as the 
result is correct.



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