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

[BUG] Add a with_execution/planning_config context manager and fix tests for splitting of parquet #2713

Merged
merged 7 commits into from
Aug 23, 2024

Conversation

jaychia
Copy link
Contributor

@jaychia jaychia commented Aug 22, 2024

  1. Adds a context manager to perform overrides of the configs that will reset themselves afterwards
  2. Adds some fixes for splitting of Parquet files

@github-actions github-actions bot added the bug Something isn't working label Aug 22, 2024
@jaychia jaychia requested a review from colin-ho August 22, 2024 22:36
Copy link

codspeed-hq bot commented Aug 22, 2024

CodSpeed Performance Report

Merging #2713 will not alter performance

Comparing jay/disable-autouse-parquet-flags-conftesrt (2c42ee0) with main (ab6d1a5)

Summary

✅ 10 untouched benchmarks

@jaychia jaychia force-pushed the jay/disable-autouse-parquet-flags-conftesrt branch from 2402804 to 66a947c Compare August 22, 2024 23:02
@colin-ho
Copy link
Contributor

added the fix here, also had to modify some of the sql tests because the scan task merging affects it

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Aug 23, 2024
@jaychia jaychia changed the title [BUG] Fix tests conftest which disabled all merging and splitting of parquet [BUG] Add a with_execution/planning_config context manager and fix tests for splitting of parquet Aug 23, 2024
Copy link
Contributor

@colin-ho colin-ho left a comment

Choose a reason for hiding this comment

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

Nice catches!

@@ -350,8 +350,10 @@ def single_partition_pipeline(
partial_metadatas: list[PartitionMetadata],
*inputs: MicroPartition,
) -> list[list[PartitionMetadata] | MicroPartition]:
set_execution_config(daft_execution_config)
return build_partitions(instruction_stack, partial_metadatas, *inputs)
with with_execution_config(
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: could we change with_execution_config to something like daft_execution_context . currently the with with_execution_config has a double with with that looks a little weird on first glance

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I agree, changed to *_config_ctx

@jaychia jaychia enabled auto-merge (squash) August 23, 2024 20:56
@jaychia jaychia merged commit 959f8f6 into main Aug 23, 2024
46 checks passed
@jaychia jaychia deleted the jay/disable-autouse-parquet-flags-conftesrt branch August 23, 2024 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants