-
Notifications
You must be signed in to change notification settings - Fork 159
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
Conversation
jaychia
commented
Aug 22, 2024
•
edited
Loading
edited
- Adds a context manager to perform overrides of the configs that will reset themselves afterwards
- Adds some fixes for splitting of Parquet files
CodSpeed Performance ReportMerging #2713 will not alter performanceComparing Summary
|
2402804
to
66a947c
Compare
added the fix here, also had to modify some of the sql tests because the scan task merging affects it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catches!
daft/runners/ray_runner.py
Outdated
@@ -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( |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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