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

Predicate push-down will not run filters for single unary expressions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.15.0
    • 0.17.0
    • impl
    • None
    • Reviewed

    Description

      While testing PIG-4940, I noticed that a "is not null" predicate was not pushed down, but equality predicates were. The problem is that the FilterExtractor#visit method ignores anything that isn't a BinaryExpression. Pushing down UnaryExpression filters works if the expression is linked in by a binary expression, like "b is not null and c == 'val'".

      Attachments

        1. PIG-4953.1.patch
          4 kB
          Ryan Blue
        2. PIG-4953.2.patch
          9 kB
          Ryan Blue
        3. PIG-4953.3.patch
          10 kB
          Daniel Dai

        Issue Links

          Activity

            People

              rdblue Ryan Blue
              rdblue Ryan Blue
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: