Skip to content
Snippets Groups Projects
Commit dd2e7d52 authored by Takuya UESHIN's avatar Takuya UESHIN
Browse files

[SPARK-19088][SQL] Fix 2.10 build.

## What changes were proposed in this pull request?

Commit 6c70a38c broke the build for scala 2.10. The commit uses some reflections which are not available in Scala 2.10. This PR fixes them.

## How was this patch tested?

Existing tests.

Author: Takuya UESHIN <ueshin@databricks.com>

Closes #17473 from ueshin/issues/SPARK-19088.
parent fe1d6b05
No related branches found
No related tags found
No related merge requests found
......@@ -307,7 +307,8 @@ object ScalaReflection extends ScalaReflection {
}
}
val cls = t.dealias.companion.decl(TermName("newBuilder")) match {
val companion = t.normalize.typeSymbol.companionSymbol.typeSignature
val cls = companion.declaration(newTermName("newBuilder")) match {
case NoSymbol => classOf[Seq[_]]
case _ => mirror.runtimeClass(t.typeSymbol.asClass)
}
......
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