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

[TPC-H] Simplify Dask queries and avoid .query and .apply #1335

Merged
merged 4 commits into from
Feb 2, 2024

Conversation

hendrikmakait
Copy link
Member

No description provided.

@@ -839,6 +841,7 @@ def query_16(dataset_path, fs):
supplier = dd.read_parquet(dataset_path + "supplier", filesystem=fs)

supplier["is_complaint"] = supplier.s_comment.str.contains("Customer.*Complaints")
# FIXME: We have to compute this early because passing a `dask_expr.Series` to `isin` is not supported
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

You could rewrite to a merge, but not blocking

@hendrikmakait
Copy link
Member Author

Honestly, I'm pretty confused by CI, but I don't touch any of these tests in here, so this appears to be unrelated.

tests/tpch/dask_queries.py Outdated Show resolved Hide resolved
Copy link
Contributor

@milesgranger milesgranger left a comment

Choose a reason for hiding this comment

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

Ya noticed the int errors in the other PR. Agree unreleated.

Copy link
Contributor

@phofl phofl left a comment

Choose a reason for hiding this comment

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

small comments, feel free to tackle in a follow up

@hendrikmakait hendrikmakait merged commit 6709cc6 into main Feb 2, 2024
10 of 11 checks passed
@hendrikmakait hendrikmakait deleted the avoid-query-in-tpch branch February 2, 2024 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants