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

Inconsistent result from order by limit query

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 0.6
    • Impala 1.0.1
    • None
    • None

    Description

      As reported in the user group, the following query has inconsistent result:

      SELECT auto_discount / revenue as discount_percent FROM sales_fact_ order by discount_percent desc limit 10

      Sometimes the result is

      inf
      inf
      inf
      inf
      inf
      inf
      inf
      inf
      inf
      0

      and sometimes it is

      inf
      inf
      inf
      inf
      inf
      inf
      inf
      inf
      inf
      -nan

      and occasionally it is

      -nan
      -nan
      -nan
      -nan
      -nan
      -nan
      -nan
      -nan
      -nan
      -nan

      Will update the JIRA once we have the sample data and schema.

      Attachments

        1. nan.patch
          2 kB
          Nong Li

        Activity

          People

            nong_impala_60e1 Nong Li
            alan@cloudera.com Alan Choi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: