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

Fix all ScalarFunctions to implement clone(List) or <init>(List)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.8.0
    • None
    • None

    Description

      CREATE TABLE T (d DECIMAL PRIMARY KEY)
      UPSERT INTO T SELECT TRUNC(rand()*100) FROM T

      Fails with:

      ...
      Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: org.apache.phoenix.expression.function.FloorDecimalExpression.<init>(java.util.List)
              at org.apache.phoenix.expression.function.ScalarFunction.clone(ScalarFunction.java:44)
              at org.apache.phoenix.expression.visitor.CloneExpressionVisitor.visitLeave(CloneExpressionVisitor.java:106)
              at org.apache.phoenix.expression.visitor.CloneExpressionVisitor.visitLeave(CloneExpressionVisitor.java:52)
              at org.apache.phoenix.expression.function.ScalarFunction.accept(ScalarFunction.java:58)
              at org.apache.phoenix.compile.RowProjector.cloneIfNecessary(RowProjector.java:123)
      ...
      

      Attachments

        1. 3006.txt
          0.7 kB
          Lars Hofhansl
        2. PHOENIX-3006_v2.patch
          12 kB
          James R. Taylor

        Activity

          People

            jamestaylor James R. Taylor
            larsh Lars Hofhansl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: