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

Reproducing with_column functionality in SQL #2935

Closed
jaychia opened this issue Sep 25, 2024 · 0 comments · Fixed by #2937
Closed

Reproducing with_column functionality in SQL #2935

jaychia opened this issue Sep 25, 2024 · 0 comments · Fixed by #2937
Assignees
Labels
bug Something isn't working

Comments

@jaychia
Copy link
Contributor

jaychia commented Sep 25, 2024

Describe the bug

I would like to express df = df.with_column("x", df["A"] + 1) in SQL

I am not able to make this work for 2 reasons:

image

image

To Reproduce

            df = daft.from_pydict({
                "A": [1, 2, 3, 4],
                "B": [1.5, 2.5, 3.5, 4.5],
                "C": [True, True, False, False],
                "D": [None, None, None, None],
            })

           daft.sql("SELECT *, (A + 1) AS try_this FROM df").show(5)

Expected behavior

No response

Component(s)

SQL

Additional context

No response

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

Successfully merging a pull request may close this issue.

2 participants