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

toDate() CQL function is instantiated for wrong argument type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 4.0-alpha1, 4.0
    • Legacy/CQL
    • None
    • Low

    Description

      toDate() function is instantiated to work for timeuuid and date types passed as an argument, instead of timeuuid and timestamp, as stated in this documentation: http://cassandra.apache.org/doc/latest/cql/functions.html#datetime-functions

      As a result it's possible to convert a date into date, but not a timestamp into date, which is probably what was meant.

      Attachments

        1. CASSANDRA-14502.txt
          2 kB
          Benjamin Lerer

        Activity

          People

            blerer Benjamin Lerer
            Sarna Piotr Sarna
            Benjamin Lerer
            Robert Stupp
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: