jamie12221 created CALCITE-4046:
-----------------------------------
Summary: 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
{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)