-
Notifications
You must be signed in to change notification settings - Fork 72
Distinct aggregation support #163
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
Merged
octaviansima
merged 33 commits into
mc2-project:master
from
octaviansima:distinct-aggregate
Mar 1, 2021
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
7c89dd1
matching in strategies.scala
octaviansima 59d228e
added test case for one distinct one non, reverted comment
octaviansima aa4c127
removed C++ level implementation of is_distinct
octaviansima 4635081
PartialMerge in operators.scala
octaviansima c6a4750
stage 1: grouping with distinct expressions
octaviansima 3afb949
stage 2: WIP
octaviansima db409a1
saving, sorting by group expressions ++ name distinct expressions worked
octaviansima cb2220f
stage 1 & 2 printing the expected results
octaviansima e84ffa8
removed extraneous call to sorted, #3 in place but not working
octaviansima 400ffc9
stage 3 has the final, correct result: refactoring the Aggregate code…
octaviansima c4e84a2
refactor done, C++ still printing the correct values
octaviansima 37c9d69
need to formalize None case in EncryptedAggregateExec.output, but sta…
octaviansima 3e629aa
distinct and indistinct passes (git add -u)
octaviansima 4abe290
general cleanup, None case looks nicer
octaviansima f4e6019
throw error with >1 distinct, add test case for global distinct
octaviansima 39acc1a
no need for global aggregation case
octaviansima 33b0d5a
single partition passes all aggregate tests, multiple partition doesn't
octaviansima 1c02769
works with global sort first
octaviansima dbcb18c
works with non-global sort first
octaviansima 3fa7577
cleanup
octaviansima 84a79b6
cleanup tests
octaviansima 39384d6
removed iostream, other nit
octaviansima 6388aea
Merge branch 'master' into distinct-aggregate
octaviansima 00dfe76
added test case for 13
octaviansima db978ae
None case in isPartial match done properly
octaviansima a6f6e37
added test cases for sumDistinct
octaviansima 11b746d
case-specific namedDistinctExpressions working
octaviansima 8ba80b6
distinct sum is done
octaviansima f9bb4c4
removed comments
octaviansima 5aefa65
got rid of mode argument
octaviansima c07843b
tests include null values
octaviansima 2fff873
partition followed by local sort instead of first global sort
octaviansima 8531c02
Merge branch 'master' into distinct-aggregate
octaviansima File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
why not functionsWithDistinct.map(_.aggregateFunction.children.toSet).distinct.length?
can we support this query:select count(distinct age) ,sum(distinct age) from table_a?