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

milliseconds_add() can lead to overflow / DCHECK

    XMLWordPrintableJSON

Details

    Description

      select milliseconds_add("1970-01-01", -10000000000000);
      release build: result = 2237-09-01 05:47:53.709551616 (should be 1653-02-10 06:13:20)
      debug build: timestamp-functions-ir.cc:740] Check failed: result_value < input_value (2237-09-01 05:47:53.709551616 vs. 1970-01-01 00:00:00)

      seconds/microseconds_add work correctly with the same timestamp

      Attachments

        Issue Links

          Activity

            People

              csringhofer Csaba Ringhofer
              csringhofer Csaba Ringhofer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: