amaliujia commented on code in PR #38621:
URL: https://github.com/apache/spark/pull/38621#discussion_r1020488570


##########
python/pyspark/sql/tests/connect/test_connect_basic.py:
##########
@@ -217,6 +217,12 @@ def test_empty_dataset(self):
     def test_session(self):
         self.assertEqual(self.connect, self.connect.sql("SELECT 
1").sparkSession())
 
+    def test_show(self):
+        # SPARK-41111: Test the show method
+        show_str = self.connect.sql("SELECT 1 AS X, 2 AS Y")._show_string()
+        expected = "+---+---+\n|  X|  Y|\n+---+---+\n|  1|  2|\n+---+---+\n"

Review Comment:
   Does 
   r'''
   "+---+---+
   |      X|    Y|
   +---+---+
   |       1|   2|
   +---+---+
   '''
   
   Does this get rid of the one line with `\n` embedded that is a bit hard to 
read? 



-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to