diff --git a/datafusion/sql/src/unparser/dialect.rs b/datafusion/sql/src/unparser/dialect.rs index 31b114bdd370a..a82687533e319 100644 --- a/datafusion/sql/src/unparser/dialect.rs +++ b/datafusion/sql/src/unparser/dialect.rs @@ -300,6 +300,7 @@ impl PostgreSqlDialect { over: None, within_group: vec![], parameters: ast::FunctionArguments::None, + uses_odbc_syntax: false, })) } } diff --git a/datafusion/sql/src/unparser/expr.rs b/datafusion/sql/src/unparser/expr.rs index 88b2e79558ca7..06d5d1a207bbb 100644 --- a/datafusion/sql/src/unparser/expr.rs +++ b/datafusion/sql/src/unparser/expr.rs @@ -247,6 +247,7 @@ impl Unparser<'_> { over, within_group: vec![], parameters: ast::FunctionArguments::None, + uses_odbc_syntax: false, })) } Expr::SimilarTo(Like { @@ -295,6 +296,7 @@ impl Unparser<'_> { over: None, within_group: vec![], parameters: ast::FunctionArguments::None, + uses_odbc_syntax: false, })) } Expr::ScalarSubquery(subq) => { @@ -500,6 +502,7 @@ impl Unparser<'_> { over: None, within_group: vec![], parameters: ast::FunctionArguments::None, + uses_odbc_syntax: false, })) } @@ -1504,6 +1507,7 @@ impl Unparser<'_> { over: None, within_group: vec![], parameters: ast::FunctionArguments::None, + uses_odbc_syntax: false, })) } diff --git a/datafusion/sql/src/unparser/utils.rs b/datafusion/sql/src/unparser/utils.rs index 4ce6dc133bc5f..3a7fa5ddcabbd 100644 --- a/datafusion/sql/src/unparser/utils.rs +++ b/datafusion/sql/src/unparser/utils.rs @@ -445,6 +445,7 @@ pub(crate) fn date_part_to_sql( over: None, within_group: vec![], parameters: ast::FunctionArguments::None, + uses_odbc_syntax: false, }))); } }