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

BUG: Fix PySpark error when doing alias after selection #2127

Merged

Conversation

icexelloss
Copy link
Contributor

This PR fixes the bug where PySpark backend is enable to handle this express correctly:

table = ...
table = table[[col]]
table = table.mutate(col2=table[col])

@icexelloss
Copy link
Contributor Author

cc @jreback

@icexelloss icexelloss changed the title [Bug][PySpark] Fix the compiler error when doing alias after selection BUG: Fix the compiler error when doing alias after selection Mar 11, 2020
@icexelloss icexelloss changed the title BUG: Fix the compiler error when doing alias after selection BUG: Fix the PySpark compiler error when doing alias after selection Mar 11, 2020
@icexelloss icexelloss added the bug Incorrect behavior inside of ibis label Mar 11, 2020
@icexelloss icexelloss changed the title BUG: Fix the PySpark compiler error when doing alias after selection BUG: Fix PySpark error when doing alias after selection Mar 11, 2020
ibis/pyspark/compiler.py Show resolved Hide resolved
@jreback jreback added this to the Next Bugfix Release milestone Mar 14, 2020
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

minor comments, ping on green

ibis/pyspark/compiler.py Show resolved Hide resolved
ibis/pyspark/tests/test_basic.py Show resolved Hide resolved
@icexelloss
Copy link
Contributor Author

@jreback Should be good to merge.

@icexelloss icexelloss force-pushed the pyspark-alias-after-selection-bug branch from 39e6adf to 2d03dd1 Compare March 23, 2020 14:26
@jreback jreback merged commit b0a2df5 into ibis-project:master Mar 24, 2020
@jreback
Copy link
Contributor

jreback commented Mar 24, 2020

thanks @icexelloss

@icexelloss
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior inside of ibis
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants