HyukjinKwon commented on code in PR #37722:
URL: https://github.com/apache/spark/pull/37722#discussion_r959082184


##########
python/pyspark/sql/tests/test_functions.py:
##########
@@ -984,6 +984,10 @@ def test_lit_list(self):
         actual = self.spark.range(1).select(lit(test_list)).first()[0]
         self.assertEqual(actual, expected)
 
+        df = self.spark.range(10)
+        with self.assertRaisesRegex(ValueError, "lit does not allow for list 
of Columns"):

Review Comment:
   ```suggestion
           with self.assertRaisesRegex(ValueError, "lit does not allow a column 
in a list"):
   ```



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