Skip to content

Commit 54027b6

Browse files
committed
Make GenericDialect support trailing commas in projections
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
1 parent a339822 commit 54027b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/dialect/generic.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ impl Dialect for GenericDialect {
116116
true
117117
}
118118

119+
fn supports_projection_trailing_commas(&self) -> bool {
120+
true
121+
}
122+
119123
fn supports_asc_desc_in_column_definition(&self) -> bool {
120124
true
121125
}

0 commit comments

Comments
 (0)