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

[ENH] coalesce implementation #932

Closed
mattf opened this issue Nov 22, 2022 · 1 comment
Closed

[ENH] coalesce implementation #932

mattf opened this issue Nov 22, 2022 · 1 comment
Labels
enhancement New feature or request needs triage Awaiting triage by a dask-sql maintainer

Comments

@mattf
Copy link

mattf commented Nov 22, 2022

Is your feature request related to a problem? Please describe.
queries using coalesce cannot be run by dask-sql

for instance,

import dask_sql as ds
import pandas as pd

print(ds.__version__)

c = ds.Context()
products = {'product_id': [1, 2], 'wholesale_price': [1.00, 2.00]}
sales = {'product_id': [1]*2 + [2]*5, 'retail_price': [2.00]*2 + [5.00]*5, 'quantity': [1, 2, 4, 8, 16, 32, 64], 'city': ['SF', 'SJ', 'SF', 'SJ', 'Maimi', 'Orlando', 'SJ'], 'state': ['CA']*4 + ['FL']* 2 + ['PR']}
c.create_table('products', pd.DataFrame(products))
c.create_table('sales', pd.DataFrame(sales))

c.sql("SELECT COALESCE(NULL, city) FROM sales")

results in,

2022.10.1
...
NotImplementedError: coalesce not (yet) implemented
@mattf mattf added enhancement New feature or request needs triage Awaiting triage by a dask-sql maintainer labels Nov 22, 2022
@mattf
Copy link
Author

mattf commented Dec 15, 2022

addressed by #823 in 2022.12.0

@mattf mattf closed this as completed Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs triage Awaiting triage by a dask-sql maintainer
Projects
None yet
Development

No branches or pull requests

1 participant