-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Implement GROUP BY #7697
Implement GROUP BY #7697
Conversation
@tuespetre, |
@tuespetre - Given the 2 dependent PRs are merged in. Can you update/rebase this PR? |
@smitpatel sure can, but heads up, there are some test cases and scenarios I have thought of that still need to be addressed here. I wouldn't bother spending your time reviewing it or anything yet. Sorry |
Just change the prefix the title with |
OK. Thanks |
a714b1e
to
7a6255c
Compare
@smitpatel I am now going to state that this PR will depend on #7767 and #7771 |
9407cc4
to
d14681e
Compare
🆙📅 finished work on tests: split out separate |
@tuespetre - The query you posted in PR #7771 , certainly it is a complex query for group join. |
@smitpatel here is the query I was basing that on: I don't see anything else blocking generally useful GROUP BY translations for now. One scenario I have not covered in this PR is aggregate subqueries that include |
c35a631
to
4309788
Compare
🆙📅 ➕ ♻️ |
🆙📅 ➕ ♻️ |
var sqlExpression = TranslateExpression(memberExpression); | ||
|
||
var handledExpression | ||
= TryHandleGroupingKeyExpression( |
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.
Remove these (and also methodcall) methods, and call appropriate code from main Visit
.
It is good to have expression type specific visitors but if they are doing the same task as the main Visit method then it does not serve much value.
@tuespetre - Please remove any trailing code changes from any other PRs which are not merged. Also for reviewing purpose create 2 different commits. 2nd one containing only test changes (there are 2200 lines of addition just from tests 😄 nice.) And let us know when it is ready for review. |
We are closing this pull request due to lack of response. If you decide to work on the issue again then feel free to reopen the PR and push more commits to it. We would be happy to review it. |
@tuespetre - I have taken tests from this PR. Thanks. |
I don't know when to quit.
This PR (dependent on #7695 and #7696) implements GROUP BY, this time with
only about 15 or 16 changed filesless changed files, although still a good number due to test changes and a very focused approach to getting it done without a lot of byproduct.