Skip to content

Commit

Permalink
[SPARK-11890][SQL] Fix compilation for Scala 2.11
Browse files Browse the repository at this point in the history
Author: Michael Armbrust <[email protected]>

Closes apache#9871 from marmbrus/scala211-break.
  • Loading branch information
marmbrus committed Nov 20, 2015
1 parent 968acf3 commit 68ed046
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -670,14 +670,14 @@ trait ScalaReflection {
* Unlike `schemaFor`, this method won't throw exception for un-supported type, it will return
* `NullType` silently instead.
*/
private def silentSchemaFor(tpe: `Type`): Schema = try {
protected def silentSchemaFor(tpe: `Type`): Schema = try {
schemaFor(tpe)
} catch {
case _: UnsupportedOperationException => Schema(NullType, nullable = true)
}

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

Expand Down

0 comments on commit 68ed046

Please sign in to comment.