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

Aleksey Plekhanov commented on IGNITE-15037:
--------------------------------------------

[~tledkov-gridgain] can you please have a look at the patch?

> Calcite engine. CURRENT_DATE/TIME/TIMESTAMP fails with NPE
> ----------------------------------------------------------
>
>                 Key: IGNITE-15037
>                 URL: https://issues.apache.org/jira/browse/IGNITE-15037
>             Project: Ignite
>          Issue Type: Bug
>          Components: sql
>            Reporter: Taras Ledkov
>            Assignee: Aleksey Plekhanov
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The call of the functions 
> - CURRENT_TIME
> - CURRENT_DATE
> - CURRENT_TIMESTAMP
> fail with NPE:
> {code}
> Caused by: java.lang.NullPointerException
>       at 
> org.apache.calcite.runtime.SqlFunctions.currentTimestamp(SqlFunctions.java:2480)
>       at SC.execute(Unknown Source)
>       at 
> org.apache.ignite.internal.processors.query.calcite.exec.exp.ExpressionFactoryImpl$ProjectImpl.apply(ExpressionFactoryImpl.java:387)
>       at 
> org.apache.ignite.internal.processors.query.calcite.exec.rel.ProjectNode.push(ProjectNode.java:63)
>       at 
> org.apache.ignite.internal.processors.query.calcite.exec.rel.ScanNode.push(ScanNode.java:107)
>       at 
> org.apache.ignite.internal.processors.query.calcite.exec.ExecutionContext.lambda$execute$0(ExecutionContext.java:239)
>       ... 4 more
> {code}



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

Reply via email to