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

[To rel/1.0] [IOTDB-4940] Optimize query fetch data partition process while containg unclosed time filter #8230

Merged
merged 8 commits into from
Nov 29, 2022

Conversation

JackieTien97
Copy link
Contributor

@JackieTien97 JackieTien97 commented Nov 28, 2022

Optimize sqls like
where time < 10
where time > 20
where time < 10 or time>20

@JackieTien97 JackieTien97 changed the base branch from master to rel/1.0 November 28, 2022 11:43
Copy link
Contributor

@CRZbulabula CRZbulabula left a comment

Choose a reason for hiding this comment

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

PTAL~

Comment on lines 31 to 37
// it will be set to true in query when there exist filter like: time <= XXX
// (-oo, timePartitionSlotList.get(0)]
private boolean needLeftAll = false;

// it will be set to true query when there exist filter like: time >= XXX
// [timePartitionSlotList.get(timePartitionSlotList.size() - 1), +oo)
private boolean needRightAll = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

The annotation shows that these two parameters indicate two close intervals. However in the implementation of SeriesPartitionTable, these two parameters indicate two open intervals.

Copy link
Contributor

Choose a reason for hiding this comment

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

The margin partition will be added (if need)in previous process code.
image

@sonarcloud
Copy link

sonarcloud bot commented Nov 28, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 17 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@CRZbulabula CRZbulabula left a comment

Choose a reason for hiding this comment

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

LGTM~

@qiaojialin qiaojialin merged commit eeaaef0 into rel/1.0 Nov 29, 2022
@qiaojialin qiaojialin deleted the QueryDataPartionOpt branch November 29, 2022 01:09
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

6 participants