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

release-19.2: opt: backport two pg compatibility fixes for GROUP BY #6180

Closed
jseldess opened this issue Dec 18, 2019 · 2 comments · Fixed by #8737
Closed

release-19.2: opt: backport two pg compatibility fixes for GROUP BY #6180

jseldess opened this issue Dec 18, 2019 · 2 comments · Fixed by #8737
Assignees
Labels
C-product-change P-1 High priority; must be done this release
Milestone

Comments

@jseldess
Copy link
Contributor

jseldess commented Dec 18, 2019

PR: cockroachdb/cockroach#42694

From release notes:

It is now valid for SELECT and HAVING to refer to ungrouped columns in the special case when the grouped columns contain the primary key of the table containing the ungrouped column. [#42694][#42694] {% comment %}doc{% endcomment %}

It is now supported to specify selection target aliases as GROUP BY columns. Note that the FROM columns take precedence over the aliases, which are only used if there is no column with that name in the current scope. [#42694][#42694] {% comment %}doc{% endcomment %}

@jseldess jseldess added this to the 19.2.x milestone Dec 18, 2019
@jseldess jseldess added A-sql P-1 High priority; must be done this release labels Dec 18, 2019
@yuzefovich
Copy link
Member

I was just casually strolling through known limitations page and saw this limitation which has been fixed by Radu recently, so I decided to drop a friendly reminder to update the page when this issue is addressed for 19.2 and 20.1 docs.

@ericharmeling
Copy link
Contributor

Let's consolidate this issue with #6181.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-product-change P-1 High priority; must be done this release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants