Skip to content
Snippets Groups Projects
Commit 68ed0468 authored by Michael Armbrust's avatar Michael Armbrust
Browse files

[SPARK-11890][SQL] Fix compilation for Scala 2.11

Author: Michael Armbrust <michael@databricks.com>

Closes #9871 from marmbrus/scala211-break.
parent 968acf3b
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment