Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-14337

cast function is not working in INSERT statement

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Fix Version/s: 4.x
    • Component/s: Legacy/CQL
    • Labels:
      None
    • Environment:

      cqlsh

      Description

      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 '('

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rakesh.roshan Rakesh Roshan
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: