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

Exception trying to cast Double to BigDecimal in UpsertCompiler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 4.7.0
    • 4.9.0, 4.8.1
    • None

    Description

      We have an UPSERT statement that is resulting in this stack trace. Unfortunately I can't get a hold of the actual Upsert statement since we don't log it.

      Cause0: java.lang.ClassCastException: java.lang.Double cannot be cast to java.math.BigDecimal
      Cause0-StackTrace:
      at org.apache.phoenix.schema.types.PDecimal.isSizeCompatible(PDecimal.java:312)
      at org.apache.phoenix.compile.UpsertCompiler$3.execute(UpsertCompiler.java:887)
      at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:335)
      at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:323)
      at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
      at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:321)
      at org.apache.phoenix.jdbc.PhoenixStatement.executeUpdate(PhoenixStatement.java:1274)
      at phoenix.connection.ProtectedPhoenixStatement.executeUpdate(ProtectedPhoenixStatement.java:127)

      Attachments

        1. PHOENIX-3210_v2.patch
          43 kB
          prakul agarwal
        2. PHOENIX-3210.patch
          43 kB
          prakul agarwal

        Issue Links

          Activity

            People

              prakul prakul agarwal
              shehzaadn Shehzaad Nakhoda
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: