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

built-in function DATEDIFF returns wrong results

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • Impala 0.3
    • Impala 0.5
    • None

    Description

      From https://cwiki.apache.org/Hive/languagemanual-udf.html
      datediff(string enddate, string startdate)
      Return the number of days from startdate to enddate:
      datediff('2009-03-01', '2009-02-27') = 2

      Impala 0.3:
      [172.20.34.102:21000] > select datediff('2009-03-01', '2009-02-27');
      Query: select datediff('2009-03-01', '2009-02-27')
      Query finished, fetching results ...
      -2
      Returned 1 row(s) in 0.01s

      Impala DATEDIFF() returns -2 when it should return 2.

      Attachments

        Activity

          People

            skye Skye Wanderman-Milne
            grahn Greg Rahn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: