mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-04 06:18:17 +00:00
Parse casting to array using double colon operator in Redshift (#1737)
This commit is contained in:
parent
1f1c0693da
commit
7fc37a76e5
7 changed files with 21 additions and 8 deletions
|
@ -14386,3 +14386,10 @@ fn test_geometric_binary_operators() {
|
|||
}
|
||||
));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_array_type_def_with_brackets() {
|
||||
let dialects = all_dialects_where(|d| d.supports_array_typedef_with_brackets());
|
||||
dialects.verified_stmt("SELECT x::INT[]");
|
||||
dialects.verified_stmt("SELECT STRING_TO_ARRAY('1,2,3', ',')::INT[3]");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue