[ 
https://issues.apache.org/jira/browse/CALCITE-6145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17791700#comment-17791700
 ] 

Julian Hyde commented on CALCITE-6145:
--------------------------------------

Great find - thanks!

But please skip the PNG if you log bugs in future. PNGs aren’t searchable, 
unlike code. We believe you, even without a PNG. 

> Function 'TRIM' without parameters throw NullPointerException
> -------------------------------------------------------------
>
>                 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
>            Priority: Major
>         Attachments: BCE71F04-5F6B-44a5-87F0-CF22284FA6E0.png
>
>
> 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 attachment.( operand.getKind() results in this exception)
> Is it should throw "Invalid number of arguments to function 'TRIM'"? Or other 
> exact description.



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

Reply via email to