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

The result of the test case mapjoin1.q is not correct

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 0.6.0, 0.7.0
    • None
    • Query Processor
    • None
    • This bug is resolved in Hive-1641

    Description

      In the test case mapjoin1.q :
      SELECT /*+ MAPJOIN(b) */ sum(a.key) as sum_a FROM srcpart a JOIN src b ON a.key = b.key where a.ds is not null;
      The current result in mapjoin1.q.out shows the result is 76260.0

      But actually, if user remove the map join hint, and run the query:
      SELECT sum(a.key) as sum_a FROM srcpart a JOIN src b ON a.key = b.key where a.ds is not null;
      The result is 1114788.0

      And I import these input data into mysql to test, and test result is also 1114788.0.

      Obviously, the current result is not correct

      Attachments

        Issue Links

          Activity

            People

              liyin Liyin Tang
              liyin Liyin Tang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: