aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWenchen Fan <wenchen@databricks.com>2015-11-20 23:31:19 -0800
committerReynold Xin <rxin@databricks.com>2015-11-20 23:31:19 -0800
commit7d3f922c4ba76c4193f98234ae662065c39cdfb1 (patch)
treef9db438aaf522f03fd9d1e46595cb04ab165190b
parenta2dce22e0a25922e2052318d32f32877b7c27ec2 (diff)
downloadspark-7d3f922c4ba76c4193f98234ae662065c39cdfb1.tar.gz
spark-7d3f922c4ba76c4193f98234ae662065c39cdfb1.tar.bz2
spark-7d3f922c4ba76c4193f98234ae662065c39cdfb1.zip
[SPARK-11819][SQL][FOLLOW-UP] fix scala 2.11 build
seems scala 2.11 doesn't support: define private methods in `trait xxx` and use it in `object xxx extend xxx`. Author: Wenchen Fan <wenchen@databricks.com> Closes #9879 from cloud-fan/follow.
-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
}