Skip to content

Fix panic on group by ordinal work with select * - #7326

Open
mattnibs wants to merge 1 commit into
mainfrom
group-by-ordinal-star
Open

mattnibs wants to merge 1 commit into
mainfrom
group-by-ordinal-star

Conversation

@mattnibs

Copy link
Copy Markdown
Collaborator

Fixes #7296

@mattnibs
mattnibs requested a review from a team September 17, 2026 22:34
Comment thread compiler/semantic/sql.go
Comment on lines +677 to +678
col := sch.columns[colno-1]
if col.semExpr != nil {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit:

Suggested change
col := sch.columns[colno-1]
if col.semExpr != nil {
if col := sch.columns[colno-1]; col.semExpr != nil {

Comment thread compiler/semantic/sql.go
col := sch.columns[colno-1]
if col.semExpr != nil {
// If semExpr is not nil, column refers to an expanded star
// expression- use this value.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit.

Suggested change
// expression- use this value.
// expression - use this value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Panic on GROUP BY with ordinals against a * projection

2 participants