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

Extra decimal support for TPC-H Q18 #261

Merged
merged 2 commits into from
Dec 18, 2024
Merged

Extra decimal support for TPC-H Q18 #261

merged 2 commits into from
Dec 18, 2024

Conversation

jurplel
Copy link
Member

@jurplel jurplel commented Dec 9, 2024

Regrettably the query is still too slow...

Would like a sanity check on this in any case.

Won't merge until unnest-exists is merged

@jurplel jurplel changed the title Match statement extensions to run TPC-H Q18 (plan still sucks too much) Match statement extensions to run TPC-H Q18 Dec 10, 2024
@jurplel jurplel changed the title Match statement extensions to run TPC-H Q18 Extensions to run TPC-H Q18 Dec 10, 2024
@jurplel jurplel changed the title Extensions to run TPC-H Q18 Extra decimal support for TPC-H Q18 Dec 10, 2024
@jurplel jurplel requested a review from skyzh December 10, 2024 22:12
@jurplel jurplel marked this pull request as ready for review December 10, 2024 22:12
@jurplel jurplel changed the base branch from bowad/unnest-exists to main December 10, 2024 22:12
@jurplel jurplel changed the base branch from main to bowad/unnest-exists December 10, 2024 22:12
Base automatically changed from bowad/unnest-exists to main December 10, 2024 22:23
jurplel added a commit that referenced this pull request Dec 10, 2024
- Support uncorrelated/correlated IN (ANY) and EXISTS clauses (This
should effectively make subquery unnesting feature complete!)
- TPC-H Q4, Q16, Q20, and Q22 working
- The remaining queries mostly seem to have plans that are too bad (Q18
has some other issue, [fix in the
pipeline](#261) but it still seems
like the plan is too slow).
@jurplel jurplel force-pushed the bowad/tpch-q18-attempt branch from 7b2b2b1 to 225753d Compare December 10, 2024 22:43
@@ -211,7 +211,16 @@ impl Value {
}
_ => panic!("{self} could not be converted into an Date32"),
}),
_ => unimplemented!("Have not implemented convert_to_type for DataType {typ}"),
DataType::Decimal128(_, _) => Value::Decimal128(match self {
// TODO: Should we be ignoring the scale and precision here?
Copy link
Member

Choose a reason for hiding this comment

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

I think Postgres has a set of rules to determine decimal in this case but let's ignore it for now...

@skyzh skyzh enabled auto-merge (squash) December 18, 2024 04:46
@skyzh skyzh merged commit b4b1aea into main Dec 18, 2024
1 check passed
@skyzh skyzh deleted the bowad/tpch-q18-attempt branch December 18, 2024 04:59
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.

2 participants