Skip to content

Preserve numeric compound field access display - #2463

Merged
alamb merged 2 commits into
apache:mainfrom
LucaCappelletti94:compound-field-access-display
Sep 3, 2026
Merged

Preserve numeric compound field access display#2463
alamb merged 2 commits into
apache:mainfrom
LucaCappelletti94:compound-field-access-display

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

CASE ... END . 2 parsed successfully, but its printed form became CASE ... END.2. That cannot be parsed again because .2 is tokenized as a number.

This keeps a space around numeric dotted field access, so the printed statement reparses to the same tree.

@LucaCappelletti94
LucaCappelletti94 marked this pull request as ready for review August 29, 2026 14:17
@LucaCappelletti94

Copy link
Copy Markdown
Contributor Author

@iffyio when you have time this one should be a blink.

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me

# Conflicts:
#	tests/sqlparser_postgres.rs
@alamb
alamb enabled auto-merge September 3, 2026 14:41
@alamb
alamb added this pull request to the merge queue Sep 3, 2026
Merged via the queue into apache:main with commit 0821cbd Sep 3, 2026
10 checks passed
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.

2 participants