-
Notifications
You must be signed in to change notification settings - Fork 25.6k
SQL: selecting a literal from grouped by query generates error #41964
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
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
4a4137f
trying to resolve literals.
codebird 30a26aa
Merge branch 'master' into issue#41413
codebird efb879b
more fixing.
codebird 7393a3d
fixing the case where a Literal or function is selected but with an a…
codebird 36087a5
solving 34583 in a rather hacky way
codebird 710451b
fixing tests.
codebird 4909761
Merge branch 'master' into issue#41413
codebird 6702e05
fixing integ tests.
codebird b4542cc
Merge branch 'master' into issue#41413
codebird 9cea6c6
Merge branch 'master' into issue#41413
codebird be4f767
merging and fixing conflicts.
codebird 985f3a5
Merge branch 'master' into issue#41413
codebird eb95d94
Merging master and updating code after #49570 was merged
codebird 676fd87
Merge remote-tracking branch 'origin/issue#41413' into issue#41413
codebird 863e687
fixing selecting literal with grouping.
codebird a32a2df
changing based on from @matriv
codebird cf2f4b0
adding tests, integrity tests, and fixed code after 1 integrity test …
codebird c6efce8
removing un-needed if.
codebird 374636e
Merge branch 'master' into issue#41413
codebird d1d640b
merging master, and changes based on @matriv review.
codebird 79e0256
changes based on @matriv review.
codebird 20bdbb6
getting rid of LiteralId, and adding space between if and (
codebird f40a30f
style fixes.
codebird 92b11bb
Merge branch 'master' into issue#41413
codebird 90de3e5
styling.
codebird 488350a
adding integration test.
codebird 12cb20c
update based on @matriv recommendation.
codebird 196d30b
reverting formatting changes.
codebird a13cf7e
reverting formatting changes.
codebird 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.
Please have the following tests:
literalWithGroupBy(withoutAlias)literalsWithGroupBy(withoutAlias)aliasedLiteralWithGroupBy(can have mixed aliased and unaliased)aliasedLiteralsWtihGroupBy(can have mixed aliased and unaliased)literalsWithMultipleGroupBy(aliased and unaliased literals, with more than one column in theGROUP BYwhich can also be a mix of aliased/unaliased)