PHOENIX-4588 Clone expression also if it's children have Determinism.PER_INVOCATION
Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/92bd6d68 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/92bd6d68 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/92bd6d68 Branch: refs/heads/4.x-cdh5.11.2 Commit: 92bd6d68229b6689e2a97416593708e3cbcb0960 Parents: 3ef7b1f Author: Ankit Singhal <ankitsingha...@gmail.com> Authored: Fri Feb 9 06:16:56 2018 +0000 Committer: Pedro Boado <pbo...@apache.org> Committed: Sun Feb 11 15:56:04 2018 +0000 ---------------------------------------------------------------------- .../org/apache/phoenix/expression/BaseSingleExpression.java | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/92bd6d68/phoenix-core/src/main/java/org/apache/phoenix/expression/BaseSingleExpression.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/main/java/org/apache/phoenix/expression/BaseSingleExpression.java b/phoenix-core/src/main/java/org/apache/phoenix/expression/BaseSingleExpression.java index c0e2fea..fbe8040 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/expression/BaseSingleExpression.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/expression/BaseSingleExpression.java @@ -113,4 +113,9 @@ public abstract class BaseSingleExpression extends BaseExpression { public boolean requiresFinalEvaluation() { return children.get(0).requiresFinalEvaluation(); } + + @Override + public Determinism getDeterminism() { + return children.get(0).getDeterminism(); + } }