Skip to content

Commit e0bb4e0

Browse files
committed
[SPARK-11890][SQL] Fix compilation for Scala 2.11
Author: Michael Armbrust <michael@databricks.com> Closes apache#9871 from marmbrus/scala211-break. (cherry picked from commit 68ed046) Signed-off-by: Michael Armbrust <michael@databricks.com>
1 parent 7e06d51 commit e0bb4e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/ScalaReflection.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,14 +670,14 @@ trait ScalaReflection {
670670
* Unlike `schemaFor`, this method won't throw exception for un-supported type, it will return
671671
* `NullType` silently instead.
672672
*/
673-
private def silentSchemaFor(tpe: `Type`): Schema = try {
673+
protected def silentSchemaFor(tpe: `Type`): Schema = try {
674674
schemaFor(tpe)
675675
} catch {
676676
case _: UnsupportedOperationException => Schema(NullType, nullable = true)
677677
}
678678

679679
/** Returns the full class name for a type. */
680-
private def getClassNameFromType(tpe: `Type`): String = {
680+
protected def getClassNameFromType(tpe: `Type`): String = {
681681
tpe.erasure.typeSymbol.asClass.fullName
682682
}
683683

0 commit comments

Comments
 (0)