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

toDate() CQL function is instantiated for wrong argument type

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 4.0
    • Component/s: Legacy/CQL
    • Labels:
      None
    • Severity:
      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

            • Assignee:
              blerer Benjamin Lerer
              Reporter:
              Sarna Piotr Sarna
              Authors:
              Benjamin Lerer
              Reviewers:
              Robert Stupp
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: