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

width_bucket() returns an incorrect result

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • Impala 3.1.0
    • Impala 3.1.0
    • Backend
    • None

    Description

      The following query returns an incorrect result:

      select width_bucket(cast(9 as decimal(10,7)), cast(-60000 as decimal(11,6)), cast(10 as decimal(7,5)), 249895273);

      Result:

      1

      Since 9 is slightly less than the upper bound, which is 10, the result should be the number of buckets.

      Attachments

        Issue Links

          Activity

            People

              anujphadke Anuj Phadke
              tarasbob Taras Bobrovytsky
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: