mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-04 06:18:17 +00:00
Support for ClickHouse array types (e.g. [1,2,3]) (#429)
This commit is contained in:
parent
994b86a45c
commit
3f5619446f
4 changed files with 55 additions and 14 deletions
|
@ -828,10 +828,13 @@ fn parse_array_index_expr() {
|
|||
assert_eq!(
|
||||
&Expr::ArrayIndex {
|
||||
obj: Box::new(Expr::Nested(Box::new(Expr::Cast {
|
||||
expr: Box::new(Expr::Array(vec![Expr::Array(vec![
|
||||
num[2].clone(),
|
||||
num[3].clone(),
|
||||
])])),
|
||||
expr: Box::new(Expr::Array(Array {
|
||||
elem: vec![Expr::Array(Array {
|
||||
elem: vec![num[2].clone(), num[3].clone(),],
|
||||
named: true,
|
||||
})],
|
||||
named: true,
|
||||
})),
|
||||
data_type: DataType::Array(Box::new(DataType::Array(Box::new(DataType::Int(
|
||||
None
|
||||
)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue