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

Unable to merge uppercase column names #1960

Closed
gdubya opened this issue Dec 12, 2023 · 4 comments
Closed

Unable to merge uppercase column names #1960

gdubya opened this issue Dec 12, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@gdubya
Copy link

gdubya commented Dec 12, 2023

Environment

Delta-rs version:
python = "^3.11"
deltalake = "^0.13.0"
pandas = "^2.1.3"

Environment:

  • OS: Ubuntu

Bug

What happened:
_internal.DeltaError: Generic DeltaTable error: Schema error: No field named source.y. Valid fields are source.x, source."Y", source.__delta_rs_source, target.x, target."Y", target.__delta_rs_target.

What you expected to happen:
Successful merge.

How to reproduce it:

    from deltalake import DeltaTable, write_deltalake
    import pyarrow as pa
    data = pa.table({"x": [1, 2, 3], "Y": [4, 5, 6]})
    write_deltalake(tmp_path, data)
    dt = DeltaTable(tmp_path)
    new_data = pa.table({"x": [1], "Y": [7]})
    (
        dt.merge(
            source=new_data,
            predicate="target.x = source.x",
            source_alias="source",
            target_alias="target")
        .when_matched_update_all()
        .execute()
    )

More details:
Note that the delta table was originally created with an uppercase Y column. This was intentional.

@gdubya gdubya added the bug Something isn't working label Dec 12, 2023
@ion-elgreco
Copy link
Collaborator

ion-elgreco commented Dec 12, 2023

This is already tracked here: #1797

And a fix is on its way: #1954

@ion-elgreco
Copy link
Collaborator

@gdubya btw, i suggest upgrading to 0.14.0 it's way faster (the case bug is still there though in that release)

@gdubya
Copy link
Author

gdubya commented Dec 12, 2023

@ion-elgreco Ah, sorry. I did a quick search but didn't see that one. Thanks!

@ion-elgreco
Copy link
Collaborator

@gdubya no worries! Hopefully soon in a small 0.14.1 release we can release the fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants