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

Add setScriptPlan() method to PigProgressNotificationListener

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      For the purposes of tracing usage and statistics of Pig scripts, I'd like to be able to correlate the information PPNL can now collect with the script that was actually running. Currently, a script id gets passed into every PPNL call, but it's just a UUID, so one can't compare it to other executions of the same script.

      It seems to me like most of what I need would be taken care of by adding a setScriptPlan(String lp) method to the PPNL interface, and calling it from ScriptState's setScriptFeatures(LogicalPlan lp). My PPNL could then walk the plan and come up with some representation that would be reusable between different runs of the same script.

      This would be a backwards incompatible change, as it requires adding a method to an interface. PPNL is labeled as evolving, and I don't believe that it's widely used at the moment.

      Attachments

        1. PIG-2528.3.patch
          3 kB
          Dmitriy V. Ryaboy
        2. PIG-2528.2.patch
          5 kB
          Dmitriy V. Ryaboy
        3. PIG-2528.patch
          4 kB
          Dmitriy V. Ryaboy

        Activity

          People

            dvryaboy Dmitriy V. Ryaboy
            dvryaboy Dmitriy V. Ryaboy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: