File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -587,6 +587,7 @@ pub fn dialect_from_str(dialect_name: impl AsRef<str>) -> Option<Box<dyn Dialect
587
587
"bigquery" => Some ( Box :: new ( BigQueryDialect ) ) ,
588
588
"ansi" => Some ( Box :: new ( AnsiDialect { } ) ) ,
589
589
"duckdb" => Some ( Box :: new ( DuckDbDialect { } ) ) ,
590
+ "databricks" => Some ( Box :: new ( DatabricksDialect { } ) ) ,
590
591
_ => None ,
591
592
}
592
593
}
@@ -638,6 +639,8 @@ mod tests {
638
639
assert ! ( parse_dialect( "ANSI" ) . is:: <AnsiDialect >( ) ) ;
639
640
assert ! ( parse_dialect( "duckdb" ) . is:: <DuckDbDialect >( ) ) ;
640
641
assert ! ( parse_dialect( "DuckDb" ) . is:: <DuckDbDialect >( ) ) ;
642
+ assert ! ( parse_dialect( "DataBricks" ) . is:: <DatabricksDialect >( ) ) ;
643
+ assert ! ( parse_dialect( "databricks" ) . is:: <DatabricksDialect >( ) ) ;
641
644
642
645
// error cases
643
646
assert ! ( dialect_from_str( "Unknown" ) . is_none( ) ) ;
You can’t perform that action at this time.
0 commit comments