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

fix: enable parquet pushdown for DeltaScan via TableProvider impl for DeltaTable #2618

Closed

Conversation

alexwilcoxson-rel
Copy link
Contributor

@alexwilcoxson-rel alexwilcoxson-rel commented Jun 24, 2024

Description

The DeltaScanBuilder used by DeltaTable's TableProvider impl does not specify DeltaScanConfig. The builder uses Default for DeltaScanConfig and thus enable_parquet_pushdown is disabled.

This change makes it so DeltaScanConfig is an Option on the scan builder. If unset during build a default value will be created using the DeltaScanConfigBuilder rather than DeltaScanConfig::Default. The former has enable_parquet_pushdown defaulted to true. I considered changing the latter but it is used in a couple other places where I was not sure of the impact.

Related Issue(s)

Documentation

@github-actions github-actions bot added the binding/rust Issues for the Rust crate label Jun 24, 2024
Copy link

ACTION NEEDED

delta-rs follows the Conventional Commits specification for release automation.

The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification.

@alexwilcoxson-rel alexwilcoxson-rel changed the title fix: TableProvider impl for DeltaTable does not enable parquet pushdown fix: enable parquet pushdown for DeltaScan via TableProvider impl for DeltaTable Jun 24, 2024
@rtyler rtyler enabled auto-merge (rebase) June 26, 2024 06:19
rtyler
rtyler previously approved these changes Jun 26, 2024
auto-merge was automatically disabled June 27, 2024 16:24

Head branch was pushed to by a user without write access

@rtyler
Copy link
Member

rtyler commented Jun 30, 2024

moved to #2637

@rtyler rtyler closed this Jun 30, 2024
rtyler added a commit that referenced this pull request Jun 30, 2024
… DeltaTable (rebase) (#2637)

The DeltaScanBuilder used by DeltaTable's TableProvider impl does not
specify DeltaScanConfig. The builder uses Default for DeltaScanConfig
and thus enable_parquet_pushdown is disabled.

This change makes it so DeltaScanConfig is an Option on the scan
builder. If unset during build a default value will be created using the
DeltaScanConfigBuilder rather than DeltaScanConfig::Default. The former
has enable_parquet_pushdown defaulted to true. I considered changing the
latter but it is used in a couple other places where I was not sure of
the impact.


closes #2618

---------

Co-authored-by: Alex Wilcoxson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding/rust Issues for the Rust crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants