Skip to content

Make GenericDialect support trailing commas in projections #1921

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 3 commits into from
Jul 6, 2025

Conversation

simonvandel
Copy link
Contributor

@simonvandel simonvandel commented Jul 2, 2025

Similar to #1911.

The docs for GenericDialect says that is can be permissive, so I thought it could support trailing commas in projections.

This would help a bit on the "friendly sql" issue
apache/datafusion#14514

I removed a test-case that tested that ´GenericDialectdid not support trailing commas in projections. Positive tests for trailing commas still exists in theparse_projection_trailing_comma` test

Similar to apache#1911.

The docs for GenericDialect says that is can be permissive, so I thought
it could support trailing commas in projections.

This would help a bit on the "friendly sql" issue
apache/datafusion#14514
@simonvandel simonvandel force-pushed the generic-support-trailing-comma branch from 0a261dd to 44ceeda Compare July 2, 2025 19:46
Copy link
Contributor

@iffyio iffyio left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @simonvandel!
cc @alamb

@iffyio iffyio merged commit cf9e504 into apache:main Jul 6, 2025
10 checks passed
@alamb
Copy link
Contributor

alamb commented Jul 6, 2025

Thank you -- I think this will be really nice improvement to SQL in DataFusion by default

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.

3 participants