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

Julian Hyde commented on CALCITE-1444:
--------------------------------------

In Parser.jj, you would reduce redundancy by assigning to a SqlTypeName 
variable rather than a SqlIdentifier. Make it more compact, like the 
{{TimestampInterval}} function.

Please add one or two tests to SqlParserTest. (SqlOperatorTest is fine, but 
it's more of a system test.) Also add one or two negative tests.

Also please modify REFERENCE.md.

> Add support for CONVERT scalar function
> ---------------------------------------
>
>                 Key: CALCITE-1444
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1444
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>            Reporter: Laurent Goujon
>            Assignee: Julian Hyde
>
> Both ODBC and JDBC spec mention a {{CONVERT}} scalar function, which is the 
> equivalent of the {{CAST}} function.
> In order for JDBC and ODBC drivers to expose support for this function, 
> calcite should support parsing it, and converting it into a {{CAST}} 
> expression (currently, it doesn't unlike some other scalar functions).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to