Trait datafusion_sql::unparser::dialect::Dialect
source · pub trait Dialect {
// Required method
fn identifier_quote_style(&self, _identifier: &str) -> Option<char>;
// Provided method
fn supports_nulls_first_in_sort(&self) -> bool { ... }
}
Expand description
Dialect
to use for Unparsing
The default dialect tries to avoid quoting identifiers unless necessary (e.g. a
instead of "a"
)
but this behavior can be overridden as needed
Note: This trait will eventually be replaced by the Dialect in the SQLparser package
See https://github.com/sqlparser-rs/sqlparser-rs/pull/1170 See also the discussion in https://github.com/apache/datafusion/pull/10625
Required Methods§
sourcefn identifier_quote_style(&self, _identifier: &str) -> Option<char>
fn identifier_quote_style(&self, _identifier: &str) -> Option<char>
Return the character used to quote identifiers.
Provided Methods§
sourcefn supports_nulls_first_in_sort(&self) -> bool
fn supports_nulls_first_in_sort(&self) -> bool
Does the dialect support specifying NULLS FIRST/LAST
in ORDER BY
clauses?