We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
from daft import DataFrame df = DataFrame.from_pydict({"A": [1, 2], "B": [3, 4]}) df.select(df["A"].alias("A2")).collect() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/orbit/workspace/daft/daft/viz/dataframe_display.py", line 49, in __repr__ return vpartition_repr( File "/home/orbit/workspace/daft/daft/viz/repr.py", line 159, in vpartition_repr data_stringified = _stringify_vpartition( File "/home/orbit/workspace/daft/daft/viz/repr.py", line 67, in _stringify_vpartition assert all( AssertionError: Data does not contain columns: {'A2'}
The text was updated successfully, but these errors were encountered:
Looks like a regression from a recent commit - I'm taking a look!
Sorry, something went wrong.
Regression introduced here: https://github.com/Eventual-Inc/Daft/pull/299/files#diff-8ce570b3f2f114483c776e449047082aaebf681b7f965f8ec989d12337a421bdR210-R214
Working on a test and fix now
Fix alias evaluation (#448)
cb07b08
Closes #447 Bug introduced by https://github.com/Eventual-Inc/Daft/pull/299/files#diff-8ce570b3f2f114483c776e449047082aaebf681b7f965f8ec989d12337a421bdR210-R214 which would skip evaluation of aliases because AliasExpressions have the same ID as its children nodes. Add a test and fix for this bug
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: