[
https://issues.apache.org/jira/browse/IGNITE-29335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18150794#comment-18150794
]
Kirill Tkalenko commented on IGNITE-29335:
------------------------------------------
Looks good.
> SQL Calcite: Adds quotes to parentheses-free function calls in view
> definitions
> -------------------------------------------------------------------------------
>
> Key: IGNITE-29335
> URL: https://issues.apache.org/jira/browse/IGNITE-29335
> Project: Ignite
> Issue Type: Bug
> Reporter: Vladislav Pyatkov
> Assignee: Vladislav Pyatkov
> Priority: Major
> Labels: calcite, ignite-2, sql
> Time Spent: 10m
> Remaining Estimate: 0h
>
> A plugin-defined function such as _SYSDATE_ works without parentheses in a
> standalone query like
> {code:sql}
> SELECT TRUNC(SYSDATE) AS DAY_START
> {code}
> When the same _SELECT_ is used in _CREATE VIEW_, Calcite saves _SYSDATE_ as
> _"SYSDATE"_. Querying the view then fails because Calcite interprets
> _"SYSDATE"_ as a column reference.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)