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: respect case sensitivity on operations #1954

Merged
merged 2 commits into from
Dec 12, 2023

Conversation

Blajda
Copy link
Collaborator

@Blajda Blajda commented Dec 10, 2023

Description

By default when Datafusion parses sql expressions it converts columns references to lower case. The Into trait for Column will also convert the column name to lower case. This is an issue since column names are case sensitive in the delta protocol and it has prevented users from using various operation with the python bindings.

This is fixed by configuring Datafusion's sql parser to not normalize identifiers and any public references to Column are replaced with DeltaColumn which will keep capitalization.

Related Issue(s)

@github-actions github-actions bot added binding/rust Issues for the Rust crate crate/core labels Dec 10, 2023
@rtyler
Copy link
Member

rtyler commented Dec 11, 2023

@Blajda this seems reasonable to me, are you ready to pull it out of draft?

@Blajda Blajda marked this pull request as ready for review December 12, 2023 00:28
Copy link
Collaborator

@ion-elgreco ion-elgreco left a comment

Choose a reason for hiding this comment

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

Looks good! Great fix :)

@rtyler rtyler merged commit b4c055d into delta-io:main Dec 12, 2023
21 checks passed
@rtyler
Copy link
Member

rtyler commented Dec 12, 2023

@Blajda since you contributed this fix, is this an urgent thing you would like to depend on (i.e. I need to backport to the 0.16 release branch) or are you okay with it going out in 0.17 in a few weeks?

@Blajda
Copy link
Collaborator Author

Blajda commented Dec 12, 2023

I'm okay with this going out in 0.17. Thanks!

@cesar-vermeulen
Copy link

Is there any update on this? This issue is currently blocking us on implementing the merge features in delta-rs

@ion-elgreco
Copy link
Collaborator

@cesar-vermeulen which version are you using? because this is already released

@cesar-vermeulen
Copy link

image

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 crate/core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DeltaTable Merge throws in merging if there are uppercase in Schema.
4 participants