ueshin commented on code in PR #54144:
URL: https://github.com/apache/spark/pull/54144#discussion_r2766685640
##########
python/pyspark/sql/tests/connect/test_connect_creation.py:
##########
@@ -71,18 +71,16 @@ def test_from_empty_pandas_dataframe(self):
def test_from_pandas_dataframe_with_zero_columns(self):
"""SPARK-55350: Test that row count is preserved when creating
DataFrame from
- pandas with 0 columns but with explicit schema."""
+ pandas with 0 columns but with explicit schema in Spark Connect."""
# Create a pandas DataFrame with 5 rows but 0 columns
pdf = pd.DataFrame(index=range(5))
schema = StructType([])
cdf = self.connect.createDataFrame(pdf, schema=schema)
- sdf = self.spark.createDataFrame(pdf, schema=schema)
- self.assertEqual(cdf.schema, sdf.schema)
+ self.assertEqual(cdf.schema, schema)
self.assertEqual(cdf.count(), 5)
- self.assertEqual(sdf.count(), 5)
Review Comment:
Is this waiting for #54125? What's the plan to address it in classic?
--
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]