Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-2090

Incorrect handling of leap years when adding 1 month interval to date

    XMLWordPrintableJSON

Details

    Description

      Impala returns incorrect result when the following query is executed:

      select CAST('2012-02-29 00:00:00' as TIMESTAMP) + INTERVAL 1 MONTH as stamp;
      

      Impala Result:

      +---------------------+
      | stamp               |
      +---------------------+
      | 2012-03-31 00:00:00 |
      +---------------------+
      

      Postgres Result:

              stamp        
      ---------------------
       2012-03-29 00:00:00
      (1 row)
      

      Attachments

        Activity

          People

            caseyc casey
            tarasbob Taras Bobrovytsky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: