HyukjinKwon commented on code in PR #46687:
URL: https://github.com/apache/spark/pull/46687#discussion_r1609209868
##########
python/pyspark/sql/tests/test_arrow.py:
##########
@@ -487,10 +487,18 @@ def check_createDataFrame_respect_session_timezone(self,
arrow_enabled):
def test_createDataFrame_with_schema(self):
pdf = self.create_pandas_data_frame()
- df = self.spark.createDataFrame(pdf, schema=self.schema)
- self.assertEqual(self.schema, df.schema)
- pdf_arrow = df.toPandas()
- assert_frame_equal(pdf_arrow, pdf)
+ for schema in [
+ self.schema,
+ (self.schema,),
Review Comment:
While I get the intention, let's probably don't do this. There are a lot of
places like this, and I think it's not worthwhile fixing them all.
--
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]