MartinSahlen opened a new issue, #1601:
URL: https://github.com/apache/datafusion-sqlparser-rs/issues/1601

   trying to parse this simple function like this: 
   ```
   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!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to