Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify defaults for repartitioning #1138

Merged
merged 3 commits into from
Mar 22, 2023
Merged

Conversation

RobinL
Copy link
Member

@RobinL RobinL commented Mar 22, 2023

Once merged this should close #1136 - see the issue for comments about why this is required

@github-actions
Copy link
Contributor

github-actions bot commented Mar 22, 2023

Test: test_2_rounds_1k_duckdb

Percentage change: 3.0%

date time stats_mean stats_min commit_info_branch commit_info_id machine_info_cpu_brand_raw machine_info_cpu_hz_actual_friendly commit_hash
849 2022-07-12 18:40:05 1.89098 1.87463 splink3 c334bb9 Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz 2.7934 GHz c334bb9
1494 2023-03-22 16:59:10 1.95273 1.93026 (detached head) 5a590cf Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz 2.2947 GHz 5a590cf

Test: test_2_rounds_1k_sqlite

Percentage change: 1.0%

date time stats_mean stats_min commit_info_branch commit_info_id machine_info_cpu_brand_raw machine_info_cpu_hz_actual_friendly commit_hash
851 2022-07-12 18:40:05 4.32179 4.25898 splink3 c334bb9 Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz 2.7934 GHz c334bb9
1496 2023-03-22 16:59:10 4.31679 4.30103 (detached head) 5a590cf Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz 2.2947 GHz 5a590cf

Click here for vega lite time series charts

try:
parallelism_value = self.spark.conf.get("spark.default.parallelism")
parallelism_value = int(parallelism_value)
except Exception:
Copy link
Member Author

@RobinL RobinL Mar 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't want to catch py4j.protocol.Py4JJavaError explicitly just in case the lib changes between version of PySpark.

Ultimately if this fails for whatever reason we can just fall back on the default

@RobinL RobinL merged commit cb9c0e7 into master Mar 22, 2023
@RobinL RobinL deleted the issue_1136_repartitioning_fix branch August 12, 2024 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Caching broken between 3.6.0 and 3.7.0 on databricks (pyspark)
1 participant