zhenlineo commented on code in PR #40025:
URL: https://github.com/apache/spark/pull/40025#discussion_r1107951418
##########
connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/PlanGenerationTestSuite.scala:
##########
@@ -184,6 +194,38 @@ class PlanGenerationTestSuite extends ConnectFunSuite with
BeforeAndAfterAll wit
session.range(1, 10, 1, 2)
}
+ test("read") {
+ session.read.format("text")
+ .schema(StructType(StructField("name", StringType) :: StructField("age",
IntegerType) :: Nil))
+ .option("op1", "op1")
+ .options(Map("op2" -> "op2"))
+ .load(testDataPath.resolve("people.txt").toString)
Review Comment:
Umm, tried with json file, but the schema seems not enough. :(
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]