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

Comparison operators for list and struct types #3510

Open
kevinzwang opened this issue Dec 6, 2024 · 0 comments
Open

Comparison operators for list and struct types #3510

kevinzwang opened this issue Dec 6, 2024 · 0 comments
Labels
backlog enhancement New feature or request good first issue Good for newcomers p2 Nice to have features

Comments

@kevinzwang
Copy link
Member

kevinzwang commented Dec 6, 2024

Is your feature request related to a problem?

Currently operators such as equality, and greater than/less than do not work for list and struct type columns.

Describe the solution you'd like

We would like to support comparisons between those types, with the same behavior as other SQL engines.

Example:

>>> import daft
>>> df = daft.from_pydict({
...     "a": [[1, 2, 3], [4, 5, 6]],
...     "b": [[1, 2, 4], [5, 6, 7]]
... })
>>> df.select("compare", df["a"] > df["b"])
[valid boolean column]

Describe alternatives you've considered

No response

Additional Context

No response

Would you like to implement a fix?

No

@kevinzwang kevinzwang added enhancement New feature or request p2 Nice to have features backlog good first issue Good for newcomers labels Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog enhancement New feature or request good first issue Good for newcomers p2 Nice to have features
Projects
None yet
Development

No branches or pull requests

1 participant