Github user HyukjinKwon commented on a diff in the pull request:
https://github.com/apache/spark/pull/21389#discussion_r189913422
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/json/JsonUtils.scala
---
@@ -48,4 +49,33 @@ object JsonUtils {
json.sample(withReplacement = false, options.samplingRatio, 1)
}
}
+
+ /**
+ * Verify if the schema is supported in JSON datasource.
+ */
+ def verifySchema(schema: StructType): Unit = {
--- End diff --
Hmm .. but wouldn't the supported types be very specific to data source?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]