[
https://issues.apache.org/jira/browse/PHOENIX-3494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James Taylor resolved PHOENIX-3494.
-----------------------------------
Resolution: Fixed
> 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
> Assignee: James Taylor
> Fix For: 4.9.0, 4.8.2
>
> Attachments: PHOENIX-3494-test.patch, PHOENIX-3494.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)