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

LogicalExpressionSimplifier optimizer rule should check if udf is deterministic while checking if they are equal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.0, 0.8.1, 0.9.0, 0.10.0
    • 0.9.0, 0.10.0
    • None
    • None

    Description

      LogicalExpressionSimplifier simplifies filter expressions. In the process, it compares udfs to see if they are 'equal' (ie expected to produce same results). But it does not check if the udfs are annotated as @Nondeterministic. If such an annotation exists, then the udfs should not be considered equal. UserFuncition.isEqual() is being used to compare the udfs.

      Attachments

        1. PIG-2139.1.patch
          7 kB
          Thejas Nair

        Activity

          People

            thejas Thejas Nair
            thejas Thejas Nair
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: