lovasoa opened a new issue, #1524:
URL: https://github.com/apache/datafusion-sqlparser-rs/issues/1524
Postgres supports specifying column names AND types in a table alias (after
AS) for functions that return values of type "record".
The following syntax is valid in postgres
```sql
SELECT * FROM jsonb_to_record('{"a": "x", "b": 2}'::jsonb) AS x(a TEXT, b
INT);
```
But in sqlparser, it returns
```
Expected: ), found: TEXT
```
This was initially reported in SQLPage, as:
https://github.com/sqlpage/SQLPage/discussions/690
--
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]