mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-07 17:04:59 +00:00
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:
parent
a3398223d7
commit
54027b6c22
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue