BryanCutler commented on a change in pull request #24867: [SPARK-28041][PYTHON]
Increase minimum supported Pandas to 0.23.2
URL: https://github.com/apache/spark/pull/24867#discussion_r293624764
##########
File path: python/pyspark/sql/tests/test_arrow.py
##########
@@ -268,10 +268,10 @@ def test_createDataFrame_with_schema(self):
def test_createDataFrame_with_incorrect_schema(self):
pdf = self.create_pandas_data_frame()
fields = list(self.schema)
- fields[0], fields[7] = fields[7], fields[0] # swap str with timestamp
+ fields[0], fields[1] = fields[1], fields[0] # swap str with int
wrong_schema = StructType(fields)
with QuietTest(self.sc):
- with self.assertRaisesRegexp(Exception,
".*cast.*[s|S]tring.*timestamp.*"):
+ with self.assertRaisesRegexp(Exception,
"integer.*required.*got.*str"):
Review comment:
removing the workaround changed this error message and it seemed more clear
for the test to swap int field instead of timestamp
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]