Repository: phoenix Updated Branches: refs/heads/4.x-cdh5.11.2 eb3458912 -> 7f2a04dd8
PHOENIX-4418 - add locale-awareness to UPPER() and LOWER() functions (addendum) Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/7f2a04dd Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/7f2a04dd Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/7f2a04dd Branch: refs/heads/4.x-cdh5.11.2 Commit: 7f2a04dd816ff84e7018e62f6c391775bee52b22 Parents: eb34589 Author: Thomas D'Silva <tdsi...@apache.org> Authored: Mon Mar 12 12:01:28 2018 -0700 Committer: Thomas D'Silva <tdsi...@apache.org> Committed: Mon Mar 12 12:30:39 2018 -0700 ---------------------------------------------------------------------- .../phoenix/expression/function/CollationKeyFunction.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/7f2a04dd/phoenix-core/src/main/java/org/apache/phoenix/expression/function/CollationKeyFunction.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/main/java/org/apache/phoenix/expression/function/CollationKeyFunction.java b/phoenix-core/src/main/java/org/apache/phoenix/expression/function/CollationKeyFunction.java index cd1ef24..9d48feb 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/expression/function/CollationKeyFunction.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/expression/function/CollationKeyFunction.java @@ -29,7 +29,6 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.hadoop.hbase.io.ImmutableBytesWritable; import org.apache.phoenix.expression.Expression; -import org.apache.phoenix.expression.LiteralExpression; import org.apache.phoenix.parse.FunctionParseNode; import org.apache.phoenix.schema.tuple.Tuple; import org.apache.phoenix.schema.types.PBoolean; @@ -190,4 +189,9 @@ public class CollationKeyFunction extends ScalarFunction { // TODO: Look into calling freeze() on them to be able return true here. return false; } + + @Override + public boolean isNullable() { + return getChildren().get(0).isNullable(); + } }