-
Notifications
You must be signed in to change notification settings - Fork 112
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
SNOW-1668981: Update is wrong when source is anti-join #2305
Comments
I have investigated this issue and it appears to also occur outside of local testing mode. Before fixing this for local testing we will also need to fix query generation for live mode. |
Is this something that will be picked up for next release? My production processes depend on a query like this |
hi @tvdboom, this is an issue in our join alias mapping, and the root cause is that df1["A] and anti["A"] they mistakenly point to the same column alias in the update call. a quick workaround for this kind of join issue is call ...
anti = df1.join(df2, on=["A", "B"], how="anti")
anti = anti.cache_result() # this will reset the alias map
... completely solving the ambiguous alias mapping issue might take some time, I will dive deeper into that part |
I understand. Thanks for the tip |
@sfc-gh-aling Could you give me a headsup when this has been solved? thanks |
hi @tvdboom , I'm actively working on it, trying to find out the optimal solution for this problem. thanks for your patience in advance! |
Please answer these questions before submitting your issue. Thanks!
What version of Python are you using?
Python 3.11.6 (tags/v3.11.6:8b6ee5b, Oct 2 2023, 14:57:12) [MSC v.1935 64 bit (AMD64)]
What operating system and processor architecture are you using?
Windows-10-10.0.22631-SP0
What are the component versions in the environment (
pip freeze
)?pandas==2.2.2
snowflake-snowpark-python==1.22.1
What did you do?
What did you expect to see?
The updated table should have only 1 updated row. Instead, both rows are updated.
The text was updated successfully, but these errors were encountered: