zhengruifeng commented on code in PR #46220: URL: https://github.com/apache/spark/pull/46220#discussion_r1579427820
########## python/pyspark/sql/tests/test_arrow.py: ########## @@ -830,7 +830,7 @@ def test_createDataFrame_empty_partition(self): pdf = pd.DataFrame({"c1": [1], "c2": ["string"]}) df = self.spark.createDataFrame(pdf) self.assertEqual([Row(c1=1, c2="string")], df.collect()) - self.assertGreater(self.spark.sparkContext.defaultParallelism, len(pdf)) + self.assertGreater(self._legacy_sc.defaultParallelism, len(pdf)) Review Comment: ah, let me see -- 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