You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "hvanhovell (via GitHub)" <gi...@apache.org> on 2023/03/08 14:54:56 UTC
[GitHub] [spark] hvanhovell commented on a diff in pull request #40332: [SPARK-42690][CONNECT] Implement CSV/JSON parsing functions for Scala client
hvanhovell commented on code in PR #40332:
URL: https://github.com/apache/spark/pull/40332#discussion_r1129567876
##########
connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/PlanGenerationTestSuite.scala:
##########
@@ -257,6 +258,13 @@ class PlanGenerationTestSuite
session.read.json(testDataPath.resolve("people.json").toString)
}
+ test("json from dataset") {
+ session.read
+ .schema(new StructType().add("c1", StringType).add("c2", IntegerType))
+ .option("allowSingleQuotes", "true")
+ .json(session.createDataset(Seq.empty[String])(StringEncoder))
Review Comment:
`session.emptyDataset(StringEncoder)`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org