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

Need better error message for MalFormedProbVecException

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.7.0
    • 0.8.0
    • None
    • None
    • Reviewed

    Description

      Instead the generic error message:

      Backend error message
      ---------------------

      Caused by: org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.partitioners.MalFormedProbVecException: ERROR 2122: Sum of probabilities should be one
      at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.partitioners.DiscreteProbabilitySampleGenerator.<init>(DiscreteProbabilitySampleGenerator.java:56)
      at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.partitioners.WeightedRangePartitioner.setConf(WeightedRangePartitioner.java:128)
      ... 10 more

      it can easily print out the content of the malformed probability vector.

      Attachments

        1. PIG-1662.patch
          2 kB
          Richard Ding

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rding Richard Ding
            rding Richard Ding
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment