You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Yury Gerzhedovich (Jira)" <ji...@apache.org> on 2021/07/12 14:06:00 UTC

[jira] [Created] (IGNITE-15111) Calcite bug. Function INITCAP fails for NULL argument

Yury Gerzhedovich created IGNITE-15111:
------------------------------------------

             Summary: Calcite bug. Function INITCAP fails for NULL argument
                 Key: IGNITE-15111
                 URL: https://issues.apache.org/jira/browse/IGNITE-15111
             Project: Ignite
          Issue Type: Bug
          Components: sql
            Reporter: Yury Gerzhedovich


Function INITCAP fails for NULL argument

seeĀ src/test/sql/function/string/test_initcap.test_ignore

{code:sql}
SELECT initcap(null)
{code}

{code:java}
ava.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:448)
	at org.apache.calcite.linq4j.tree.Expressions.call(Expressions.java:460)
	at org.apache.ignite.internal.processors.query.calcite.exec.exp.ConverterUtils.convert(ConverterUtils.java:251)
	at org.apache.ignite.internal.processors.query.calcite.exec.exp.ConverterUtils.convert(ConverterUtils.java:176)
	at org.apache.ignite.internal.processors.query.calcite.exec.exp.RexImpTable$AbstractRexCallImplementor.genValueStatement(RexImpTable.java:1963)
	at org.apache.ignite.internal.processors.query.calcite.exec.exp.RexImpTable$AbstractRexCallImplementor.implement(RexImpTable.java:1910)
	at org.apache.ignite.internal.processors.query.calcite.exec.exp.RexToLixTranslator.visitCall(RexToLixTranslator.java:991)
	at org.apache.ignite.internal.processors.query.calcite.exec.exp.RexToLixTranslator.visitCall(RexToLixTranslator.java:79)
	at org.apache.calcite.rex.RexCall.accept(RexCall.java:189)
	at org.apache.ignite.internal.processors.query.calcite.exec.exp.RexToLixTranslator.visitLocalRef(RexToLixTranslator.java:886)
	at org.apache.ignite.internal.processors.query.calcite.exec.exp.RexToLixTranslator.visitLocalRef(RexToLixTranslator.java:79)
	at org.apache.calcite.rex.RexLocalRef.accept(RexLocalRef.java:77)
	at org.apache.ignite.internal.processors.query.calcite.exec.exp.RexToLixTranslator.translate(RexToLixTranslator.java:205)
	at org.apache.ignite.internal.processors.query.calcite.exec.exp.RexToLixTranslator.translate(RexToLixTranslator.java:198)
	at org.apache.ignite.internal.processors.query.calcite.exec.exp.RexToLixTranslator.translateList(RexToLixTranslator.java:763)
	at org.apache.ignite.internal.processors.query.calcite.exec.exp.RexToLixTranslator.translateProjects(RexToLixTranslator.java:179)
	at org.apache.ignite.internal.processors.query.calcite.exec.exp.ExpressionFactoryImpl.compile(ExpressionFactoryImpl.java:300)
	at org.apache.ignite.internal.processors.query.calcite.exec.exp.ExpressionFactoryImpl.lambda$scalar$4(ExpressionFactoryImpl.java:263)
{code}




--
This message was sent by Atlassian Jira
(v8.3.4#803005)