Skip to content

[IOTDB-968] Support time predicate in select last#1898

Merged
HTHou merged 6 commits intoapache:masterfrom
wshao08:last_filter
Oct 30, 2020
Merged

[IOTDB-968] Support time predicate in select last#1898
HTHou merged 6 commits intoapache:masterfrom
wshao08:last_filter

Conversation

@wshao08
Copy link
Contributor

@wshao08 wshao08 commented Oct 29, 2020

Comment on lines +184 to +187
if (filter != null &&
filter.satisfy(tvPair.getTimestamp(), tvPair.getValue().getValue())) {
return true;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

if the filter is null, shoudn't we return true?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

Comment on lines +219 to +221
if (timeFilter == null) {
return false;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as before, if the filter is null, shoudn't we return true?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@wshao08 wshao08 requested a review from JackieTien97 October 29, 2020 15:23
@HTHou HTHou merged commit bfd5af6 into apache:master Oct 30, 2020
5Reeson pushed a commit to 5Reeson/iotdb that referenced this pull request Oct 30, 2020
* Support time filter for last query

* Add last with filter test

* Fix test issues

* Refuse to accept value filter in FROM clause

* Fix code bug

* Update docs
@wshao08 wshao08 deleted the last_filter branch October 30, 2020 07: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.

3 participants