nchammas commented on a change in pull request #27854: [SPARK-31065][SQL] Match
schema_of_json to the schema inference of JSON data source
URL: https://github.com/apache/spark/pull/27854#discussion_r389766263
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/json/JsonInferSchema.scala
##########
@@ -198,7 +196,8 @@ private[sql] class JsonInferSchema(options: JSONOptions)
extends Serializable {
* Recursively canonicalizes inferred types, e.g., removes StructTypes with
no fields,
* drops NullTypes or converts them to StringType based on provided options.
*/
- private def canonicalizeType(tpe: DataType, options: JSONOptions):
Option[DataType] = tpe match {
+ private[catalyst] def canonicalizeType(
Review comment:
Scala noob question: What's the significance of `private[catalyst]` vs.
`private`?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]