beyond1920 opened a new pull request, #2844:
URL: https://github.com/apache/calcite/pull/2844

   ## What is the purpose of the change
   
   This pr aims to extend table function to support Polymorphic Table Function. 
   
   ## Brief change log
   
     - Update `Parser.jj` to support partition by clause and order by clause 
for input table with set semantics of PTF
     - Introduce `TableCharacteristics` which contains three characteristics of 
input table of table function
     - Update `SqlTableFunction` to add a method `tableCharacteristics`,  the 
method returns the table characteristics for the ordinal-th argument to this 
table function. Default return value is Optional.empty which means the 
ordinal-th argument is not table.
     - Introduce `SqlSetSemanticsTable` which represents input table with set 
semantics of Table Function, its `SqlKind` is `SET_SEMANTICS_TABLE`
     - Updates `SqlValidatorImpl` to validate only set semantic table of Table 
Function could have partition by and order by clause
     - Update `SqlToRelConverter#substituteSubQuery` to parse subQuery which 
represents set semantics table.
   
   ## Verifying this change
   
     - Add tests in `SqlToRelConveterTest`, `SqlValidatorTest`


-- 
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: commits-unsubscr...@calcite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to