Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-3494

ArrayIndexOutOfBoundsException with decimal desc key

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.9.0
    • Fix Version/s: 4.9.0, 4.8.2
    • Labels:
      None

      Description

      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)
      

        Attachments

        1. PHOENIX-3494.patch
          7 kB
          James R. Taylor
        2. PHOENIX-3494-test.patch
          2 kB
          Mujtaba Chohan

          Activity

            People

            • Assignee:
              jamestaylor James R. Taylor
              Reporter:
              mujtabachohan Mujtaba Chohan
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: