Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-4059 Pig on Spark
  3. PIG-4659

Fix unit test failures in org.apache.pig.test.TestScriptLanguageJavaScript

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: spark-branch
    • Component/s: spark
    • Labels:
      None

      Description

      Failed testcase: org.apache.pig.test.TestScriptLanguageJavaScript.testTC

      Error Message:
      can't evaluate main: main();
      Stacktrace
      java.lang.RuntimeException: can't evaluate main: main();
      at org.apache.pig.scripting.js.JsScriptEngine.jsEval(JsScriptEngine.java:135)
      at org.apache.pig.scripting.js.JsScriptEngine.main(JsScriptEngine.java:223)
      at org.apache.pig.scripting.ScriptEngine.run(ScriptEngine.java:300)
      at org.apache.pig.test.TestScriptLanguageJavaScript.testTC(TestScriptLanguageJavaScript.java:149)
      Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot call method "getNumberRecords" of null

        Attachments

        1. PIG-4659.patch
          0.6 kB
          Xianda Ke
        2. PIG-4659-2.patch
          0.6 kB
          Xianda Ke

          Activity

            People

            • Assignee:
              kexianda Xianda Ke
              Reporter:
              kexianda Xianda Ke
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: