You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "SimonAlexs (Jira)" <ji...@apache.org> on 2023/11/30 08:51:00 UTC

[jira] [Created] (CALCITE-6145) Function 'TRIM' throw NullPointerException without parameters

SimonAlexs created CALCITE-6145:
-----------------------------------

             Summary: Function 'TRIM' throw NullPointerException without parameters
                 Key: CALCITE-6145
                 URL: https://issues.apache.org/jira/browse/CALCITE-6145
             Project: Calcite
          Issue Type: Bug
          Components: core
    Affects Versions: 1.36.0
            Reporter: SimonAlexs


When use sql as follow, trim without parameters, it throws java.lang.NullPointerException.
{code:java}
select trim(){code}
Error position is org.apache.calcite.sql.SqlOperator#constructArgNameList. Exact reason is in picture.( operand.getKind() results in this exception)

Is it should throw "Invalid number of arguments to function 'TRIM'"? Or other exact description.

 

!image-2023-11-30-16-44-18-699.png!



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