LuciferYang commented on code in PR #52742:
URL: https://github.com/apache/spark/pull/52742#discussion_r2492787458
##########
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:
It seems that the issue with (SELECT * FROM table LIMIT 3).limit(5) still
persists. Although Spark will optimize 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]