[
https://issues.apache.org/jira/browse/PHOENIX-3494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15674892#comment-15674892
]
Mujtaba Chohan commented on PHOENIX-3494:
-----------------------------------------
Verified that this is a regression from v4.8.
> ArrayIndexOutOfBoundsException with decimal desc key
> ----------------------------------------------------
>
> Key: PHOENIX-3494
> URL: https://issues.apache.org/jira/browse/PHOENIX-3494
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 4.9.0
> Reporter: Mujtaba Chohan
> Attachments: PHOENIX-3494-test.patch
>
>
> {noformat}
> java.lang.ArrayIndexOutOfBoundsException: 1
> at
> org.apache.phoenix.schema.types.PDataType.getDecimalPrecisionAndScale(PDataType.java:717)
> at
> org.apache.phoenix.schema.types.PDecimal.coerceBytes(PDecimal.java:355)
> at
> org.apache.phoenix.schema.types.PDataType.coerceBytes(PDataType.java:822)
> at
> org.apache.phoenix.schema.types.PDecimal.isSizeCompatible(PDecimal.java:324)
> at org.apache.phoenix.schema.PTableImpl.newKey(PTableImpl.java:675)
> at
> org.apache.phoenix.compile.UpsertCompiler.setValues(UpsertCompiler.java:149)
> at
> org.apache.phoenix.compile.UpsertCompiler.access$3(UpsertCompiler.java:116)
> at
> org.apache.phoenix.compile.UpsertCompiler$4.execute(UpsertCompiler.java:1046)
> at
> org.apache.phoenix.jdbc.PhoenixStatement$3.call(PhoenixStatement.java:355)
> at
> org.apache.phoenix.jdbc.PhoenixStatement$3.call(PhoenixStatement.java:1)
> at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
> at
> org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:337)
> at
> org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1459)
> at
> org.apache.phoenix.end2end.UpsertValuesIT.testUpsertValuesWithDescDecimal(UpsertValuesIT.java:177)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)