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

SNOW-1597225: Selecting duplicate column using original df fails #2029

Open
GuyOmer opened this issue Aug 5, 2024 · 0 comments
Open

SNOW-1597225: Selecting duplicate column using original df fails #2029

GuyOmer opened this issue Aug 5, 2024 · 0 comments
Assignees
Labels
bug Something isn't working local testing Local Testing issues/PRs needs triage Initial RCA is required

Comments

@GuyOmer
Copy link

GuyOmer commented Aug 5, 2024

Please answer these questions before submitting your issue. Thanks!

  1. What version of Python are you using?

    Python 3.10.13 (main, Feb 13 2024, 16:41:04) [Clang 15.0.0 (clang-1500.1.0.2.5)]

  2. What are the Snowpark Python and pandas versions in the environment?

    pandas==2.2.2
    snowflake-snowpark-python==1.20.0

  3. What did you do?

from snowflake.snowpark import Session

s = Session.builder.config("local_testing", True).create()
df1 = s.create_dataframe([{'id': 1, 'foo': 'bar'}])
df2 = s.create_dataframe([{'id': 1, 'taz': 'baz'}])

df1.join(df2, on=df1['id'] == df2['id']).select(df2['id']).show() # KeyError: '"ID"'
  1. What did you expect to see?

Snowflake connection would know to resolve the ID column from df2.

@GuyOmer GuyOmer added bug Something isn't working local testing Local Testing issues/PRs needs triage Initial RCA is required labels Aug 5, 2024
@github-actions github-actions bot changed the title Selecting duplicate column using original df fails SNOW-1597225: Selecting duplicate column using original df fails Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working local testing Local Testing issues/PRs needs triage Initial RCA is required
Projects
None yet
Development

No branches or pull requests

2 participants