-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat(sql): implementation of 'distinct' algorithm for time series data #1053
Conversation
[PR Coverage check]😍 pass : 18 / 18 (100.00%) file detail
|
compiler, | ||
sqlExecutionContext, | ||
"y", | ||
"select distinct * from x", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about
select distinct * from x order by ts DESC
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should work too, in this scenario order by ts desc
will be discarded (table is already ordered) and distinct will work as expected, but i will add a test
|
||
@Override | ||
public void recordAt(Record record, long atRowId) { | ||
baseCursor.recordAt(record, atRowId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is correct, records from this cursor don't map 1 to 1 to base cursor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is tested to be correct :)
No description provided.