You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fails to parse BigQuery UDF with "ANY TYPE" parameters #1601
fn main() {
let sql = "
CREATE TEMP FUNCTION my_function(are_map ANY TYPE)
AS (
(SELECT 1)
);
";
let ast = Parser::parse_sql(&BigQueryDialect, sql).unwrap();
for stmt in &ast {
println!("{:?}", stmt);
}
}
Yields this error:
thread 'main' panicked at src/main.rs:18:56:
called `Result::unwrap()` on an `Err` value: ParserError("Expected: ), found: TYPE at Line: 2, Column: 46")
I can try to have a look at this , seems relatively straightforward to fix!
Activity
MartinSahlen commentedon Dec 13, 2024
Jus adding to the context that is is working in BigQuery - see screenshot:
