aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/ScalaReflection.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/ScalaReflection.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/ScalaReflection.scala
index 4a4a62ed1a..476becec4d 100644
--- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/ScalaReflection.scala
+++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/ScalaReflection.scala
@@ -670,14 +670,14 @@ trait ScalaReflection {
* Unlike `schemaFor`, this method won't throw exception for un-supported type, it will return
* `NullType` silently instead.
*/
- protected def silentSchemaFor(tpe: `Type`): Schema = try {
+ def silentSchemaFor(tpe: `Type`): Schema = try {
schemaFor(tpe)
} catch {
case _: UnsupportedOperationException => Schema(NullType, nullable = true)
}
/** Returns the full class name for a type. */
- protected def getClassNameFromType(tpe: `Type`): String = {
+ def getClassNameFromType(tpe: `Type`): String = {
tpe.erasure.typeSymbol.asClass.fullName
}