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
587587 "bigquery" => Some ( Box :: new ( BigQueryDialect ) ) ,
588588 "ansi" => Some ( Box :: new ( AnsiDialect { } ) ) ,
589589 "duckdb" => Some ( Box :: new ( DuckDbDialect { } ) ) ,
590+ "databricks" => Some ( Box :: new ( DatabricksDialect { } ) ) ,
590591 _ => None ,
591592 }
592593}
@@ -638,6 +639,8 @@ mod tests {
638639 assert ! ( parse_dialect( "ANSI" ) . is:: <AnsiDialect >( ) ) ;
639640 assert ! ( parse_dialect( "duckdb" ) . is:: <DuckDbDialect >( ) ) ;
640641 assert ! ( parse_dialect( "DuckDb" ) . is:: <DuckDbDialect >( ) ) ;
642+ assert ! ( parse_dialect( "DataBricks" ) . is:: <DatabricksDialect >( ) ) ;
643+ assert ! ( parse_dialect( "databricks" ) . is:: <DatabricksDialect >( ) ) ;
641644
642645 // error cases
643646 assert ! ( dialect_from_str( "Unknown" ) . is_none( ) ) ;
You can’t perform that action at this time.
0 commit comments