Parse casting to array using double colon operator in Redshift (#1737)

This commit is contained in:
Yoav Cohen 2025-02-22 07:21:45 +01:00 committed by GitHub
parent 1f1c0693da
commit 7fc37a76e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 21 additions and 8 deletions

View file

@ -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]");
}