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

Benjamin Lerer commented on CASSANDRA-14337:
--------------------------------------------

This is not a bug. {{CAST}} function are for the moment only supported in the 
selection part of the {{SELECT}} statement.

Which is why I moved the ticket from {{bug}} to {{improvement.}}

> cast function is not working in INSERT statement
> ------------------------------------------------
>
>                 Key: CASSANDRA-14337
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14337
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: CQL
>         Environment: cqlsh
>            Reporter: Rakesh Roshan
>            Priority: Major
>             Fix For: 4.x
>
>
> INSERT INTO test.table(last_modified) values(cast(
> ('2018-03-20 13:05:56.063000+0000' as timestamp));
>  
> fails with error 
> *no viable alternative at input '('*



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to