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

OpTraits : Select Optraits should stop when a mismatch is detected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      The select operator's optraits logic as stated in the comment is,

      // For bucket columns
      // If all the columns match to the parent, put them in the bucket cols
      // else, add empty list.
      // For sort columns
      // Keep the subset of all the columns as long as order is maintained.

       

      However, this is not happening due to a bug. The bool found is never reset, so if a single match is found, the value remains true and allows the optraits get populated with partial list of columns for bucket col which is incorrect.
      This may lead to creation of SMB join which should not happen.

      Attachments

        1. HIVE-20100.01-branch-3.patch
          17 kB
          Deepak Jaiswal
        2. HIVE-20100.02-branch-3.patch
          17 kB
          Deepak Jaiswal
        3. HIVE-20100.1.patch
          4 kB
          Deepak Jaiswal
        4. HIVE-20100.2.patch
          41 kB
          Deepak Jaiswal
        5. HIVE-20100.3.patch
          17 kB
          Deepak Jaiswal
        6. HIVE-20100.4.patch
          17 kB
          Deepak Jaiswal
        7. HIVE-20100.5.patch
          17 kB
          Deepak Jaiswal
        8. HIVE-20100.6.patch
          17 kB
          Deepak Jaiswal
        9. HIVE-20100.7.patch
          17 kB
          Deepak Jaiswal
        10. HIVE-20100.8.patch
          17 kB
          Deepak Jaiswal

        Activity

          People

            djaiswal Deepak Jaiswal
            djaiswal Deepak Jaiswal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: