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

Optimized HashTable with vectorized map-joins results in String columns extending

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.14.0
    • 0.14.0
    • Tez, Vectorization
    • None

    Description

      The following query returns different results when both vectorized mapjoin and the new optimized hashtable are enabled.

      hive> set hive.vectorized.execution.enabled=false;
      hive> select s_suppkey, n_name from supplier, nation where s_nationkey = n_nationkey limit 25;
      ...
      316869  JAPAN
      1636869 RUSSIA
      1096869 IRAN
      7236869 RUSSIA
      2276869 INDIA
      8516869 ARGENTINA
      2636869 MOZAMBIQUE
      3836869 ROMANIA
      2616869 FRANCE
      

      But when vectorization is enabled, the results are

      316869  JAPAN
      1636869 RUSSIA
      1096869 IRANIA
      7236869 RUSSIA
      2276869 INDIAA
      8516869 ARGENTINA
      2636869 MOZAMBIQUE
      3836869 ROMANIAQUE
      2616869 FRANCEAQUE
      

      it works correctly with vectorization when the new optimized map-join hashtable is disabled

      hive> set hive.vectorized.execution.enabled=true;                                             
      hive> set hive.mapjoin.optimized.hashtable=false;                                             
      hive> select s_suppkey, n_name from supplier, nation where s_nationkey = n_nationkey limit 25;
      
      316869  JAPAN
      1636869 RUSSIA
      1096869 IRAN
      7236869 RUSSIA
      2276869 INDIA
      8516869 ARGENTINA
      2636869 MOZAMBIQUE
      3836869 ROMANIA
      2616869 FRANCE
      

      Attachments

        1. HIVE-7266.patch
          1 kB
          Sergey Shelukhin
        2. hive-7266-small-test.tgz
          7 kB
          Gopal Vijayaraghavan

        Activity

          People

            sershe Sergey Shelukhin
            gopalv Gopal Vijayaraghavan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: