mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-11 22:42:02 +00:00
Support BigQuery window function null treatment (#1239)
This commit is contained in:
parent
8626051513
commit
fb20f8ccbe
6 changed files with 204 additions and 37 deletions
|
@ -185,6 +185,20 @@ pub trait Dialect: Debug + Any {
|
|||
fn supports_named_fn_args_with_eq_operator(&self) -> bool {
|
||||
false
|
||||
}
|
||||
/// Returns true if the dialects supports specifying null treatment
|
||||
/// as part of a window function's parameter list. As opposed
|
||||
/// to after the parameter list.
|
||||
/// i.e The following syntax returns true
|
||||
/// ```sql
|
||||
/// FIRST_VALUE(a IGNORE NULLS) OVER ()
|
||||
/// ```
|
||||
/// while the following syntax returns false
|
||||
/// ```sql
|
||||
/// FIRST_VALUE(a) IGNORE NULLS OVER ()
|
||||
/// ```
|
||||
fn supports_window_function_null_treatment_arg(&self) -> bool {
|
||||
false
|
||||
}
|
||||
/// Returns true if the dialect supports defining structs or objects using a
|
||||
/// syntax like `{'x': 1, 'y': 2, 'z': 3}`.
|
||||
fn supports_dictionary_syntax(&self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue