Github user jkbradley commented on a diff in the pull request:
https://github.com/apache/spark/pull/17218#discussion_r107774188
--- Diff: python/pyspark/ml/tests.py ---
@@ -1243,6 +1244,45 @@ def test_tweedie_distribution(self):
self.assertTrue(np.isclose(model2.intercept, 0.6667, atol=1E-4))
+class FPGrowthTests(SparkSessionTestCase):
+ def setUp(self):
+ self.shuffle_partitions =
self.spark.conf.get("spark.sql.shuffle.partitions")
+ self.spark.conf.set("spark.sql.shuffle.partitions", "1")
--- End diff --
Why 1 partition? If it's for speed, then I wouldn't bother, unless we want
to adjust it for all unit tests. (I agree that setting it to 4 or so is often
much faster than the default of 200.) But let's do that in another PR.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]