[ 
https://issues.apache.org/jira/browse/CALCITE-4046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17135382#comment-17135382
 ] 

Chunwei Lei commented on CALCITE-4046:
--------------------------------------

Thank you for reporting this, [~jamie12221]. Could you provide a test case?

> Check the number of input nodes(org.apache.calcite.interpreter.SetOpNode)
> -------------------------------------------------------------------------
>
>                 Key: CALCITE-4046
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4046
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.23.0
>            Reporter: jamie12221
>            Priority: Trivial
>
>  
>  
>  
> {code:java}
> public class SetOpNode implements Node {
>   private final Source leftSource;
>   private final Source rightSource;
>   private final Sink sink;
>   private final SetOp setOp;
>   public SetOpNode(Compiler compiler, SetOp setOp) {
>     leftSource = compiler.source(setOp, 0);
>     rightSource = compiler.source(setOp, 1);
>     sink = compiler.sink(setOp);
>     this.setOp = setOp;
>   }
> {code}
>  
> There may be more than two input nodes. If the input is not checked, the 
> result set is wrong.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to