Make GenericDialect support trailing commas in projections

Similar to https://github.com/apache/datafusion-sqlparser-rs/pull/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
https://github.com/apache/datafusion/issues/14514
This commit is contained in:
Simon Vandel Sillesen 2025-07-02 21:40:01 +02:00
parent a3398223d7
commit 54027b6c22

View file

@ -116,6 +116,10 @@ impl Dialect for GenericDialect {
true
}
fn supports_projection_trailing_commas(&self) -> bool {
true
}
fn supports_asc_desc_in_column_definition(&self) -> bool {
true
}