Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-19671

Distribute by rand() can lead to data inconsistency

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Noticed the following queries can give different results:

      select count(*) from tbl;
      select count(*) from (select * from tbl distribute by rand()) a;
      

      Attachments

        Issue Links

          Activity

            People

              lirui Rui Li
              lirui Rui Li
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated: