Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5859

Compile-time evaluation of LEFT(NULL, n) should not throw RuntimeException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.34.0, 1.35.0
    • 1.36.0
    • core

    Description

      SELECT LEFT(NULL, 100)
      

      causes this exception:

      Caused by: java.lang.RuntimeException: while resolving method 'valueOf[class java.lang.String]' in class class java.lang.Void
      	at org.apache.calcite.linq4j.tree.Types.lookupMethod(Types.java:318)
      	at org.apache.calcite.linq4j.tree.Expressions.call(Expressions.java:449)
      	at org.apache.calcite.linq4j.tree.Expressions.call(Expressions.java:461)
      	at org.apache.calcite.adapter.enumerable.EnumUtils.convert(EnumUtils.java:396)
      	at org.apache.calcite.adapter.enumerable.EnumUtils.convert(EnumUtils.java:339)
      

      Attachments

        Issue Links

          Activity

            People

              mbudiu Mihai Budiu
              mbudiu Mihai Budiu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: