mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-12-23 11:12:51 +00:00
Add support for BigQuery ANY TYPE data type (#1602)
Co-authored-by: Martin Abelson Sahlen <sahlen@Martins-MacBook-Air.local> Co-authored-by: Martin Abelson Sahlen <sahlen@Mac.lan>
This commit is contained in:
parent
885aa93465
commit
7bc6ddb8fb
3 changed files with 25 additions and 1 deletions
|
|
@ -2212,3 +2212,19 @@ fn test_any_value() {
|
|||
bigquery_and_generic().verified_expr("ANY_VALUE(fruit HAVING MAX sold)");
|
||||
bigquery_and_generic().verified_expr("ANY_VALUE(fruit HAVING MIN sold)");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_any_type() {
|
||||
bigquery().verified_stmt(concat!(
|
||||
"CREATE OR REPLACE TEMPORARY FUNCTION ",
|
||||
"my_function(param1 ANY TYPE) ",
|
||||
"AS (",
|
||||
"(SELECT 1)",
|
||||
")",
|
||||
));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_any_type_dont_break_custom_type() {
|
||||
bigquery_and_generic().verified_stmt("CREATE TABLE foo (x ANY)");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue