hvanhovell commented on code in PR #40025:
URL: https://github.com/apache/spark/pull/40025#discussion_r1106592754
##########
connector/connect/client/jvm/src/main/scala/org/apache/spark/sql/SparkSession.scala:
##########
@@ -62,6 +62,18 @@ class SparkSession(private val client: SparkConnectClient,
private val cleaner:
builder.setSql(proto.SQL.newBuilder().setQuery(query))
}
+ /**
+ * Returns a [[DataFrameReader]] that can be used to read non-streaming data
in as a
+ * `DataFrame`.
+ * {{{
+ * sparkSession.read.parquet("/path/to/file.parquet")
+ * sparkSession.read.schema(schema).json("/path/to/file.json")
+ * }}}
+ *
+ * @since 3.4.0
+ */
+ def read: DataFrameReader = new DataFrameReader(this)
Review Comment:
Can you also add `table()`? Can also be done in a follow-up.
--
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]