Uploaded image for project: 'Livy'
  1. Livy
  2. LIVY-271

traceback could be json list or json object which is misleading

    XMLWordPrintableJSON

    Details

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

      Description

      This is the 2 statement output I get. You can see that the traceback of the first statement is a json object while the second is a json list. This is misleading to users especially user want to deserialize these json string to java plain object.

          {
            "id": 1,
            "state": "available",
            "output": {
              "status": "error",
              "execution_count": 1,
              "ename": "Error",
              "evalue": "incomplete statement",
              "traceback": {}
            }
          },
          {
            "id": 2,
            "state": "available",
            "output": {
              "status": "error",
              "execution_count": 2,
              "ename": "Error",
              "evalue": "<console>:26: error: value sm is not a member of org.apache.spark.rdd.RDD[Int]",
              "traceback": [
                "       sc.parallelize(0 to 100).sm()",
                "\n                                ^"
              ]
            }
          }
      
      

        Attachments

          Activity

            People

            • Assignee:
              zjffdu Jeff Zhang
              Reporter:
              zjffdu Jeff Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: