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

cast function is not working in INSERT statement

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 4.1-alpha1, 4.1
    • Legacy/CQL
    • None
    • 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

        Issue Links

          Activity

            People

              adelapena Andres de la Peña
              rakesh.roshan Rakesh Roshan
              Andres de la Peña
              Benjamin Lerer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m