-
Notifications
You must be signed in to change notification settings - Fork 0
/
customer_bug.json
1 lines (1 loc) · 4.5 KB
/
customer_bug.json
1
{"paragraphs":[{"text":"%define\ncase class Data(COL1: Int, COL2: Int, COL3: Int)","dateUpdated":"2017-04-27T17:30:49-0400","config":{"colWidth":12,"graph":{"mode":"table","height":300,"optionOpen":false,"keys":[],"values":[],"groups":[],"scatter":{}},"enabled":true,"editorMode":"ace/mode/scala"},"settings":{"params":{},"forms":{}},"jobName":"paragraph_1493328299215_922349484","id":"20170427-172459_770934725","result":{"code":"SUCCESS","type":"TEXT","msg":"res0: org.apache.zeppelin.dep.Dependency = org.apache.zeppelin.dep.Dependency@404fa8a4\n"},"dateCreated":"2017-04-27T05:24:59-0400","status":"FINISHED","progressUpdateIntervalMs":500,"$$hashKey":"object:198","dateFinished":"2017-04-27T17:30:56-0400","dateStarted":"2017-04-27T17:30:49-0400","focus":true},{"text":"%spark\n\nval data = Seq(Seq(1, 2, 3), Seq(7, 8, 9), Seq(9, 2, 3), Seq(4, 2, 3), Seq(5, 6, 7))\nval rdd = sc.parallelize(data, data.length).map(s => new Data(s(0), s(1), s(2)))\n\nval threeColDF = sqlContext.createDataFrame(rdd)\n\nimport org.insightedge.spark.implicits.all._\nimport org.apache.spark.sql._\nthreeColDF.write.grid.mode(SaveMode.Overwrite).save(\"numseq\")\n\nval persisted3ColDF = sqlContext.read.grid.load(\"numseq\")\npersisted3ColDF.show()","dateUpdated":"2017-04-27T17:35:26-0400","config":{"colWidth":12,"graph":{"mode":"table","height":300,"optionOpen":false,"keys":[],"values":[],"groups":[],"scatter":{}},"enabled":true,"editorMode":"ace/mode/scala"},"settings":{"params":{},"forms":{}},"jobName":"paragraph_1493328332594_-34274199","id":"20170427-172532_591013489","dateCreated":"2017-04-27T05:25:32-0400","status":"FINISHED","progressUpdateIntervalMs":500,"$$hashKey":"object:199","dateFinished":"2017-04-27T17:35:28-0400","dateStarted":"2017-04-27T17:35:26-0400","result":{"code":"SUCCESS","type":"TEXT","msg":"data: Seq[Seq[Int]] = List(List(1, 2, 3), List(7, 8, 9), List(9, 2, 3), List(4, 2, 3), List(5, 6, 7))\nrdd: org.apache.spark.rdd.RDD[Data] = MapPartitionsRDD[28] at map at <console>:43\nthreeColDF: org.apache.spark.sql.DataFrame = [COL1: int, COL2: int, COL3: int]\nimport org.insightedge.spark.implicits.all._\nimport org.apache.spark.sql._\npersisted3ColDF: org.apache.spark.sql.DataFrame = [COL1: int, COL2: int, COL3: int]\n+----+----+----+\n|COL1|COL2|COL3|\n+----+----+----+\n| 4| 2| 3|\n| 5| 6| 7|\n| 7| 8| 9|\n| 1| 2| 3|\n| 9| 2| 3|\n+----+----+----+\n\r\n"},"focus":true},{"config":{"colWidth":12,"graph":{"mode":"table","height":300,"optionOpen":false,"keys":[],"values":[],"groups":[],"scatter":{}},"enabled":true},"settings":{"params":{},"forms":{}},"jobName":"paragraph_1493328912144_177162028","id":"20170427-173512_728686700","dateCreated":"2017-04-27T17:35:12-0400","status":"FINISHED","progressUpdateIntervalMs":500,"focus":true,"$$hashKey":"object:546","text":"%spark\nval fourColDF = persisted3ColDF.withColumn(\"COL4\", persisted3ColDF(\"COL3\") + 1)\nprintln(\"Printing modified dataframe before save to the data-grid\")\nfourColDF.show()\nfourColDF.write.grid.mode(SaveMode.Overwrite).save(\"numseq\")\nprintln(\"Printing modified dataframe after save to the data-grid\")\nfourColDF.show()","dateUpdated":"2017-04-27T17:38:27-0400","dateFinished":"2017-04-27T17:38:28-0400","dateStarted":"2017-04-27T17:38:27-0400","result":{"code":"SUCCESS","type":"TEXT","msg":"fourColDF: org.apache.spark.sql.DataFrame = [COL1: int, COL2: int, COL3: int, COL4: int]\nPrinting modified dataframe before save to the data-grid\r\n+----+----+----+----+\n|COL1|COL2|COL3|COL4|\n+----+----+----+----+\n| 5| 6| 7| 8|\n| 4| 2| 3| 4|\n| 1| 2| 3| 4|\n| 9| 2| 3| 4|\n| 7| 8| 9| 10|\n+----+----+----+----+\n\r\nPrinting modified dataframe after save to the data-grid\r\n+----+----+----+----+\n|COL1|COL2|COL3|COL4|\n+----+----+----+----+\n+----+----+----+----+\n\r\n"}},{"text":"%spark\n\nval persisted4ColDF = sqlContext.read.grid.load(\"numseq\")\nprintln(\"Printing modified dataframe after reloading it from the data-grid\")\npersisted4ColDF.show()","dateUpdated":"2017-04-27T17:30:25-0400","config":{"colWidth":12,"graph":{"mode":"table","height":300,"optionOpen":false,"keys":[],"values":[],"groups":[],"scatter":{}},"enabled":true},"settings":{"params":{},"forms":{}},"jobName":"paragraph_1493328606232_139427632","id":"20170427-173006_302001953","dateCreated":"2017-04-27T17:30:06-0400","status":"READY","progressUpdateIntervalMs":500,"$$hashKey":"object:200"}],"name":"customer_bug","id":"2CHHQU6NJ","angularObjects":{"2BY3CWM32:shared_process":[],"2C1697SXS:shared_process":[]},"config":{"looknfeel":"default"},"info":{}}