lovasoa commented on issue #1524:
URL: 
https://github.com/apache/datafusion-sqlparser-rs/issues/1524#issuecomment-2479950624

   From 
https://www.postgresql.org/docs/17/queries-table-expressions.html#QUERIES-TABLEFUNCTIONS
 : 
   
   >  In some cases it is useful to define table functions that can return 
different column sets depending on how they are invoked. To support this, the 
table function can be declared as returning the pseudo-type record with no OUT 
parameters. When such a function is used in a query, the expected row structure 
must be specified in the query itself, so that the system can know how to parse 
and plan the query. This syntax looks like:
   
   ```sql
   function_call [AS] alias (column_definition [, ... ])
   function_call AS [alias] (column_definition [, ... ])
   ROWS FROM( ... function_call AS (column_definition [, ... ]) [, ... ] )
   ```


-- 
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