Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-4329

Fetch optimization should be disabled when limit is not pushed up

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.15.0
    • None
    • None

    Description

      Although PIG-4135 disable fetch optimization when there is no limit in the plan, that doesn't solve the problem completely. In fact, fetch optimization should be still disabled if limit is not pushed up. Consider the following query-

      random_lists = load 'prodhive.schakraborty.search_server_denorm_impressions' using DseStorage();
      random_lists = filter random_lists by entity_section=='random';
      random_lists = limit random_lists 10;
      dump random_lists;
      

      Because the filter by blocks limit from being pushed up, POLoad actually scans the full table. In this case, fetch optimization makes the job extremely slow.

      Attachments

        1. PIG-4329-2.patch
          3 kB
          Lorand Bendig
        2. PIG-4329-1.patch
          1 kB
          Cheolsoo Park

        Activity

          People

            lbendig Lorand Bendig
            cheolsoo Cheolsoo Park
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: