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

Inconsistent result from order by limit query

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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:

              Slack

                Issue deployment