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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.8.0
    • Labels:
      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 Taylor

          Activity

            People

            • Assignee:
              jamestaylor James Taylor
              Reporter:
              lhofhansl Lars Hofhansl
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: