mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-10 05:52:13 +00:00
Support Databricks struct literal (#1542)
This commit is contained in:
parent
4ab3ab9147
commit
bd750dfada
7 changed files with 71 additions and 9 deletions
|
@ -931,12 +931,14 @@ pub enum Expr {
|
|||
Rollup(Vec<Vec<Expr>>),
|
||||
/// ROW / TUPLE a single value, such as `SELECT (1, 2)`
|
||||
Tuple(Vec<Expr>),
|
||||
/// `BigQuery` specific `Struct` literal expression [1]
|
||||
/// `Struct` literal expression
|
||||
/// Syntax:
|
||||
/// ```sql
|
||||
/// STRUCT<[field_name] field_type, ...>( expr1 [, ... ])
|
||||
///
|
||||
/// [BigQuery](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#struct_type)
|
||||
/// [Databricks](https://docs.databricks.com/en/sql/language-manual/functions/struct.html)
|
||||
/// ```
|
||||
/// [1]: https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#struct_type
|
||||
Struct {
|
||||
/// Struct values.
|
||||
values: Vec<Expr>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue