Hisoka-X commented on code in PR #40741:
URL: https://github.com/apache/spark/pull/40741#discussion_r1162860013


##########
python/pyspark/sql/tests/connect/test_connect_basic.py:
##########
@@ -2039,6 +2039,31 @@ def test_repr(self):
             self.spark.sql(query).__repr__(),
         )
 
+    def test_string_sql_formatter(self):
+        self.connect.sql(
+            "SELECT * FROM range(10) WHERE id > {bound1} AND id < {bound2}", 
bound1=7, bound2=9
+        ).show()
+
+        mydf = self.connect.range(10)
+        self.connect.sql(
+            "SELECT {col} FROM {mydf} WHERE id IN {x}", col=mydf.id, 
mydf=mydf, x=tuple(range(4))
+        ).show()
+
+        self.connect.sql(

Review Comment:
   The test with dataframes can't passed on my env, I trying figure it out.



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