commit | e8c2042d775666653f87229e952e3db4227678e0 | [log] [tgz] |
---|---|---|
author | Dmitry Lychagin <dmitry.lychagin@couchbase.com> | Wed Feb 02 08:42:11 2022 -0800 |
committer | Dmitry Lychagin <dmitry.lychagin@couchbase.com> | Wed Feb 02 17:43:21 2022 +0000 |
tree | b4c147dd11198cd3adb5265052a0a52bf726f095 | |
parent | f8403e35616ce3e0e02d4afb70f1e1a2baff1834 [diff] |
[ASTERIXDB-3007][TEST] Fix PlanVerifierTestBase - user model changes: no - storage format changes: no - interface changes: no Details: - Fix illegal query plan created by PlanVerifierTestBase Change-Id: Ib0ab584bd5ff71596d84f769aa8584e9223698ec Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/15125 Reviewed-by: Michael Blow <mblow@apache.org> Tested-by: Michael Blow <mblow@apache.org>
diff --git a/hyracks-fullstack/algebricks/algebricks-core/src/test/java/org/apache/hyracks/algebricks/core/algebra/plan/PlanVerifierTestBase.java b/hyracks-fullstack/algebricks/algebricks-core/src/test/java/org/apache/hyracks/algebricks/core/algebra/plan/PlanVerifierTestBase.java index 7bfbaa9..65d6460 100644 --- a/hyracks-fullstack/algebricks/algebricks-core/src/test/java/org/apache/hyracks/algebricks/core/algebra/plan/PlanVerifierTestBase.java +++ b/hyracks-fullstack/algebricks/algebricks-core/src/test/java/org/apache/hyracks/algebricks/core/algebra/plan/PlanVerifierTestBase.java
@@ -92,7 +92,9 @@ Mutable<ILogicalOperator> createSamplePlan1() { AssignOperator op1 = newAssign(newVar(), newMutable(ConstantExpression.TRUE)); - SubplanOperator op2 = new SubplanOperator(newAssign(newVar(), newMutable(ConstantExpression.TRUE))); + AssignOperator r1 = newAssign(newVar(), newMutable(ConstantExpression.TRUE)); + r1.getInputs().add(new MutableObject<>(new EmptyTupleSourceOperator())); + SubplanOperator op2 = new SubplanOperator(r1); op1.getInputs().add(newMutable(op2)); InnerJoinOperator op3 = new InnerJoinOperator(newMutable(ConstantExpression.TRUE));