You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Mihai Budiu (Jira)" <ji...@apache.org> on 2023/07/18 21:53:00 UTC

[jira] [Created] (CALCITE-5859) Calcite crashes at compilation time when evaluating LEFT(NULL, n) expression

Mihai Budiu created CALCITE-5859:
------------------------------------

             Summary: Calcite crashes at compilation time when evaluating LEFT(NULL, n) expression
                 Key: CALCITE-5859
                 URL: https://issues.apache.org/jira/browse/CALCITE-5859
             Project: Calcite
          Issue Type: Bug
          Components: core
    Affects Versions: 1.34.0
            Reporter: Mihai Budiu


{code:sql}
SELECT LEFT(NULL, 100)
{code}

causes this exception:

{code}
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)
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)