You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Chinmay Kulkarni (Jira)" <ji...@apache.org> on 2019/12/21 00:57:08 UTC
[jira] [Closed] (PHOENIX-4929) IndexOutOfBoundsException when
casting timestamp to date
[ https://issues.apache.org/jira/browse/PHOENIX-4929?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chinmay Kulkarni closed PHOENIX-4929.
-------------------------------------
Bulk closing Jiras for the 4.15.0 release.
> IndexOutOfBoundsException when casting timestamp to date
> --------------------------------------------------------
>
> Key: PHOENIX-4929
> URL: https://issues.apache.org/jira/browse/PHOENIX-4929
> Project: Phoenix
> Issue Type: Bug
> Reporter: Vincent Poon
> Assignee: Xinyi Yan
> Priority: Major
> Fix For: 4.15.0
>
> Attachments: PHOENIX-4929.patch, PHOENIX-4929.patch, QueryCompilerTest.java
>
>
> java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
> at java.util.ArrayList.rangeCheck(ArrayList.java:653)
> at java.util.ArrayList.get(ArrayList.java:429)
> at org.apache.phoenix.expression.function.RoundTimestampExpression.create(RoundTimestampExpression.java:76)
> at org.apache.phoenix.compile.ExpressionCompiler.convertToRoundExpressionIfNeeded(ExpressionCompiler.java:594)
> at org.apache.phoenix.compile.ExpressionCompiler.visitLeave(ExpressionCompiler.java:621)
> at org.apache.phoenix.compile.ExpressionCompiler.visitLeave(ExpressionCompiler.java:1)
> at org.apache.phoenix.parse.CastParseNode.accept(CastParseNode.java:62)
> at org.apache.phoenix.compile.ProjectionCompiler.compile(ProjectionCompiler.java:412)
> at org.apache.phoenix.compile.QueryCompiler.compileSingleFlatQuery(QueryCompiler.java:564)
> at org.apache.phoenix.compile.QueryCompiler.compileSingleQuery(QueryCompiler.java:510)
> at org.apache.phoenix.compile.QueryCompiler.compileSelect(QueryCompiler.java:195)
> at org.apache.phoenix.compile.QueryCompiler.compile(QueryCompiler.java:155)
> at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableSelectStatement.compilePlan(PhoenixStatement.java:490)
> at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableSelectStatement.compilePlan(PhoenixStatement.java:1)
> at org.apache.phoenix.jdbc.PhoenixStatement.compileQuery(PhoenixStatement.java:1745)
> at org.apache.phoenix.jdbc.PhoenixStatement.compileQuery(PhoenixStatement.java:1738)
> at
--
This message was sent by Atlassian Jira
(v8.3.4#803005)