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

InvalidQuery when datetime string format is not zero padded

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 4.0-beta3, 4.0
    • CQL/Interpreter
    • None

    Description

      With CASSANDRA-15976, Cassandra no longer accepts certain datetime string formats that it used to accept before:

      Unable to parse a date/time from '2020-09-03 9:00:00+0000'
      

      In this example, 2020-09-03 9:00:00+0000 is not accepted in 4.0-beta2 but it is accepted in previous versions (I tested this with 4.0-beta1 and 3.11.4). If I add a zero so that it becomes 2020-09-03 09:00:00+0000 then it is accepted in all of the 3 mentioned versions (note the zero padded time part - 9:00:00 vs 09:00:00)

      Attachments

        Activity

          People

            aholmber Adam Holmberg
            joao.reis João Reis
            Adam Holmberg
            Brandon Williams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: