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

Push DistinctLimit into TableScan #5756

Merged
merged 7 commits into from
Nov 4, 2020

Conversation

findepi
Copy link
Member

@findepi findepi commented Oct 30, 2020

Fixes #5522

This way the test method is self-contained.
Previously the stats collection would be bound to the session outside of
transaction, leading to "Not in a transaction" exceptions being logged.

(The stats collection failures are suppressed by default.)
@findepi findepi force-pushed the findepi/distinct-limit-aggregation branch from 67db2e3 to 889f2c1 Compare November 4, 2020 12:17
@findepi
Copy link
Member Author

findepi commented Nov 4, 2020

Test added and bunch of more code too, so @losipiuk @kokosing PTAL.

.withApplyAggregation(
(session, handle, aggregates, assignments, groupingSets) -> {
ApplyAggregation applyAggregation = testApplyAggregation.get();
if (applyAggregation != null) {
Copy link
Member

Choose a reason for hiding this comment

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

require non null applyAggregation? To make sure it is always set in test.

Copy link
Member Author

Choose a reason for hiding this comment

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

The test code ensures -- and must ensure that -- thru the way how assertions are written.

@findepi findepi force-pushed the findepi/distinct-limit-aggregation branch from 889f2c1 to 636948e Compare November 4, 2020 13:55
Copy link
Member

@losipiuk losipiuk left a comment

Choose a reason for hiding this comment

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

LGTM

@findepi findepi force-pushed the findepi/distinct-limit-aggregation branch from 636948e to d20cdc9 Compare November 4, 2020 15:50
@findepi
Copy link
Member Author

findepi commented Nov 4, 2020

AC

@findepi
Copy link
Member Author

findepi commented Nov 4, 2020

CI failed -- #4936 (#5829)

@findepi findepi merged commit 862fcf6 into trinodb:master Nov 4, 2020
@findepi findepi deleted the findepi/distinct-limit-aggregation branch November 4, 2020 21:45
@findepi findepi added this to the 346 milestone Nov 4, 2020
@findepi findepi mentioned this pull request Nov 4, 2020
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Push down aggregation with DISTINCT and LIMIT into JDBC connectors
4 participants