xiedeyantu commented on PR #4209:
URL: https://github.com/apache/calcite/pull/4209#issuecomment-2687379085

   > The issue raised by @suibianwanwank is a very good test case. We should 
test the accuracy of this logic in the JdbcTest.
   
   @NobiGo Sorry, I tried many ways and couldn't find a good jdbc test method. 
I found that when executing the test, the plan should not include subquery, 
which will cause this error
   ```
     public RexLocalRef registerInput(RexNode expr) {
       final RexShuttle shuttle = new RegisterInputShuttle(true);
       final RexNode ref = expr.accept(shuttle);
       return (RexLocalRef) ref;  <------ ref is Subquery, can not cast to 
RexLocalRef
     }
   ```


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