Pig
  1. Pig
  2. PIG-3525

PigStats.get() and ScriptState.get() shouldn't return MR-specific objects

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.13.0
    • Fix Version/s: 0.13.0
    • Component/s: impl
    • Labels:
      None

      Description

      After PIG-3419, PigStats and ScriptState are no longer MR-specific classes. But PigStats.get() and ScriptState.get() methods still return MR-specific objects (SimplePigStats and MRScriptState respectively). We should deprecate these method and provide a new way to create appropriate objects based on the ExecType.

      1. PIG-3525-1.patch
        15 kB
        Cheolsoo Park
      2. PIG-3525-2.patch
        15 kB
        Cheolsoo Park
      3. PIG-3525-3.patch
        16 kB
        Cheolsoo Park

        Issue Links

          Activity

          Hide
          Cheolsoo Park added a comment -

          Attached is a patch that make these get() functions return proper type of objects based on the exec type.

          Show
          Cheolsoo Park added a comment - Attached is a patch that make these get() functions return proper type of objects based on the exec type.
          Hide
          Cheolsoo Park added a comment -

          Canceling the patch since it doesn't fix the issue.

          Show
          Cheolsoo Park added a comment - Canceling the patch since it doesn't fix the issue.
          Hide
          Cheolsoo Park added a comment -

          Updating a proper fix. The RB link is here-
          https://reviews.apache.org/r/15634/

          Show
          Cheolsoo Park added a comment - Updating a proper fix. The RB link is here- https://reviews.apache.org/r/15634/
          Hide
          Rohini Palaniswamy added a comment -

          +1. Looks good to me

          Show
          Rohini Palaniswamy added a comment - +1. Looks good to me
          Hide
          Cheolsoo Park added a comment -

          Committed to trunk. Thank you Rohini for the review!

          Show
          Cheolsoo Park added a comment - Committed to trunk. Thank you Rohini for the review!

            People

            • Assignee:
              Cheolsoo Park
              Reporter:
              Cheolsoo Park
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development