maziyarpanahi commented on a change in pull request #3304: Add spark csv and json tests URL: https://github.com/apache/zeppelin/pull/3304#discussion_r254214845
########## File path: zeppelin-interpreter-integration/src/main/test/org/apache/zeppelin/integration/ZeppelinSparkClusterTest.java ########## @@ -225,7 +225,31 @@ public void sparkSQLTest() throws IOException { assertTrue(p.getReturn().message().get(0).getData().contains( "Array[org.apache.spark.sql.Row] = Array([hello,20])")); - // test display DataFrame + @Test + public void sparkReadCSVTest() throws IOException { + Note note = ZeppelinServer.notebook.createNote(anonymous); + Paragraph p = note.addNewParagraph(anonymous); + p.setText("%spark val csvStr = \"\"\"84896,54\"\"\"\n" + + "spark.read.csv(Seq(csvStr).toDS)"); + note.run(p.getId(), true); + assertEquals(Status.FINISHED, p.getStatus()); + assertTrue(p.getResult().message().get(0).getData().contains( + "org.apache.spark.sql.DataFrame = [_c0: string, _c1: string]\n")); + } + + @Test + public void sparkSQLTest() throws IOException { Review comment: I forgot the JSON test and copied the wrong test. I will commit to this pull request. In fact, there should be 2 tests one for csv and one for json. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services