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: delete operation when partition and non partition columns are used #1375

Merged
merged 4 commits into from
May 21, 2023

Conversation

Blajda
Copy link
Collaborator

@Blajda Blajda commented May 17, 2023

Description

The deletion operation fails when a predicate contains partition and non-partition columns.

Datafusion currently raises an error about comparing a dictionary to a scalar
E.G The expression col("partition_col").eq(lit"2023-05-16")) fails since the literal is a UTF8 and not a dictionary.

This is fixed by creating the physical expression using the table schema where partition columns are not wrapped. Otherwise, the wrapped schema is used elsewhere.

@github-actions github-actions bot added binding/rust Issues for the Rust crate rust labels May 17, 2023
@Blajda Blajda marked this pull request as ready for review May 17, 2023 03:11
@wjones127 wjones127 merged commit 8fd0af8 into delta-io:main May 21, 2023
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 rust
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants