Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-2475

Date arithmetic broken for time and timestamp

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.6.0
    • 4.7.0
    • None

    Description

      Create a timestamp table and insert a timestamp

      create table timestamp_table (ts timestamp primary key)upsert into timestamp_table values ('1995-05-02 01:01:01')

      Example test case

      select ts + 1 from timestamp_table

      Expected result:
      The timestamp with one day added to it

      1995-05-03 01:01:01

      Actual result:
      the unmodified timestamp

      Attachments

        1. PHOENIX-2475_3_master.patch
          13 kB
          ramkrishna.s.vasudevan
        2. PHOENIX-2475_2_master.patch
          10 kB
          ramkrishna.s.vasudevan
        3. PHOENIX-2475_1_master.patch
          10 kB
          ramkrishna.s.vasudevan
        4. PHOENIX-2475_master.patch
          7 kB
          ramkrishna.s.vasudevan

        Activity

          People

            ram_krish ramkrishna.s.vasudevan
            kliew Kevin Liew
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: