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

   ## Jira Link
   [CALCITE-7574](https://issues.apache.org/jira/browse/CALCITE-7574) 
   
   ## What
   
     Fix AssertionError when JDBC adapter uses window functions (RANK, 
ROW_NUMBER, etc.) in query.
   
     ## Why
   
     `ProjectToLogicalProjectAndWindowRule` has no convention restriction in 
its operand definition (trait is null, meaning match any convention). When 
`JdbcProjectRule` converts a
     `LogicalProject` with OVER to `JdbcProject` (JDBC convention), and then 
`ProjectToLogicalProjectAndWindowRule` fires on it, the JDBC traitSet 
propagates through
     `CalcRelSplitter` to `LogicalWindow.create()`. The resulting 
`LogicalWindow` inherits the JDBC convention but does not implement the 
`JdbcRel` interface, causing an
     AssertionError in `VolcanoPlanner.registerImpl`.
   


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

Reply via email to