Repository: phoenix Updated Branches: refs/heads/master da37b9dac -> f15c4dc33
PHOENIX-2213 ARRAY_LENGTH fails for Decimal type array (Dumindu Buddhika) Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/f15c4dc3 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/f15c4dc3 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/f15c4dc3 Branch: refs/heads/master Commit: f15c4dc3361c1673129042bd3be3bdd6484a4c08 Parents: da37b9d Author: ramkrishna <ramkrishna.s.vasude...@gmail.com> Authored: Mon Aug 31 14:34:26 2015 +0530 Committer: ramkrishna <ramkrishna.s.vasude...@gmail.com> Committed: Mon Aug 31 14:39:29 2015 +0530 ---------------------------------------------------------------------- .../apache/phoenix/expression/function/ArrayLengthFunction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/f15c4dc3/phoenix-core/src/main/java/org/apache/phoenix/expression/function/ArrayLengthFunction.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/main/java/org/apache/phoenix/expression/function/ArrayLengthFunction.java b/phoenix-core/src/main/java/org/apache/phoenix/expression/function/ArrayLengthFunction.java index 1c1c7df..242ca0f 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/expression/function/ArrayLengthFunction.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/expression/function/ArrayLengthFunction.java @@ -27,11 +27,11 @@ import org.apache.phoenix.schema.types.PBinaryArray; import org.apache.phoenix.schema.types.PInteger; import org.apache.phoenix.schema.types.PArrayDataType; import org.apache.phoenix.schema.types.PDataType; -import org.apache.phoenix.schema.types.PVarbinary; +import org.apache.phoenix.schema.types.PVarbinaryArray; import org.apache.phoenix.schema.tuple.Tuple; @BuiltInFunction(name = ArrayLengthFunction.NAME, args = { @Argument(allowedTypes = { - PBinaryArray.class, PVarbinary.class }) }) + PBinaryArray.class, PVarbinaryArray.class }) }) public class ArrayLengthFunction extends ScalarFunction { public static final String NAME = "ARRAY_LENGTH";