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

traceback could be json list or json object which is misleading

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.3
    • 0.3
    • REPL
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: