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

Add RANGE FilterKind to support merging ranges for SQL #5898

Merged
merged 1 commit into from
Aug 19, 2020

Conversation

Jackie-Jiang
Copy link
Contributor

Description

Currently we cannot replace BrokerRequest with PinotQuery completely because of the filter optimizer only works on BrokerRequest. One of the optimizations is to merge ranges joined by AND (very useful especially for hybrid table).
We cannot apply the same optimization to PinotQuery without a new RANGE FilterKind (e.g. no way to represent a > 10 AND a <= 20).
This PR introduces the new RANGE FilterKind so that Server knows how to process it.
After release 0.5.0, we can add the optimizer for PinotQuery so that Broker can optimize PinotQuery, and Server already knows how to process the RANGE filter.

Also let Server support both '\0' and "\t\t" as the range delimiter so that it can work on string values with '\t' inside properly.

@Jackie-Jiang Jackie-Jiang merged commit 4fd70fe into apache:master Aug 19, 2020
@Jackie-Jiang Jackie-Jiang deleted the sql_range branch August 19, 2020 20:21
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