aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorJakob Odersky <jodersky@gmail.com>2015-10-20 08:54:34 +0100
committerSean Owen <sowen@cloudera.com>2015-10-20 08:54:34 +0100
commit60851bc7bf1fe702cde1d1548efd8016411e1682 (patch)
tree6c470899d1a72bccddd4d5e9ed557a7fcf48935d /sql
parent8f74aa639759f400120794355511327fa74905da (diff)
downloadspark-60851bc7bf1fe702cde1d1548efd8016411e1682.tar.gz
spark-60851bc7bf1fe702cde1d1548efd8016411e1682.tar.bz2
spark-60851bc7bf1fe702cde1d1548efd8016411e1682.zip
[SPARK-11110][BUILD] Remove transient annotation for parameters.
`transient` annotations on class parameters (not case class parameters or vals) causes compilation errors during compilation with Scala 2.11. I understand that transient *parameters* make no sense, however I don't quite understand why the 2.10 compiler accepted them. Note: in case it is preferred to keep the annotations in case someone would in the future want to redefine them as vals, it would also be possible to just add `val` after the annotation, e.g. `class Foo(transient x: Int)` becomes `class Foo(transient private val x: Int)`. I chose to remove the annotation as it also reduces needles clutter, however please feel free to tell me if you prefer the second option and I'll update the PR Author: Jakob Odersky <jodersky@gmail.com> Closes #9126 from jodersky/sbt-scala-2.11.
Diffstat (limited to 'sql')
-rw-r--r--sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala
index 4d8a3f728e..38c195bc7d 100644
--- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala
+++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala
@@ -89,9 +89,9 @@ private[hive] case class CurrentDatabase(ctx: HiveContext)
class HiveContext private[hive](
sc: SparkContext,
cacheManager: CacheManager,
- @transient listener: SQLListener,
- @transient execHive: ClientWrapper,
- @transient metaHive: ClientInterface,
+ listener: SQLListener,
+ @transient private val execHive: ClientWrapper,
+ @transient private val metaHive: ClientInterface,
isRootContext: Boolean)
extends SQLContext(sc, cacheManager, listener, isRootContext) with Logging {
self =>