ueshin opened a new pull request, #39971:
URL: https://github.com/apache/spark/pull/39971

   ### What changes were proposed in this pull request?
   
   Supports parameterized SQL by `sql()`.
   
   Note: `SparkSession.sql` in PySpark also supports string formatter, but it 
will be handled separately.
   
   ### Why are the changes needed?
   
   Currently `SparkSession.sql` in Spark Connect doesn't support parameterized 
SQL.
   
   ### Does this PR introduce _any_ user-facing change?
   
   The parameterized SQL will be available.
   
   For example:
   
   ```py
   >>> spark.sql("SELECT * FROM range(10) WHERE id > :minId", args = {"minId" : 
"7"}).toPandas()
      id
   0   8
   1   9
   ```
   
   ### How was this patch tested?
   
   Added a test.


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