diff options
author | baishuo(白硕) <vc_java@hotmail.com> | 2014-07-25 13:59:45 -0700 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2014-07-25 13:59:45 -0700 |
commit | ab3c6a455c0b50e3fcfea3bbb3b9035aba8f06e3 (patch) | |
tree | b342025b203aac7382a477b71cdb083f71e5191a | |
parent | a19d8c89d90eea7eb8295378cec3d27444e0336d (diff) | |
download | spark-ab3c6a455c0b50e3fcfea3bbb3b9035aba8f06e3.tar.gz spark-ab3c6a455c0b50e3fcfea3bbb3b9035aba8f06e3.tar.bz2 spark-ab3c6a455c0b50e3fcfea3bbb3b9035aba8f06e3.zip |
[SQL]Update HiveMetastoreCatalog.scala
I think it's better to defined hiveQlTable as a val
Author: baishuo(白硕) <vc_java@hotmail.com>
Closes #1569 from baishuo/patch-1 and squashes the following commits:
dc2f895 [baishuo(白硕)] Update HiveMetastoreCatalog.scala
a7b32a2 [baishuo(白硕)] Update HiveMetastoreCatalog.scala
-rw-r--r-- | sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala index 8db60d3276..156b090712 100644 --- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala +++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala @@ -258,7 +258,7 @@ private[hive] case class MetastoreRelation // org.apache.hadoop.hive.ql.metadata.Partition will cause a NotSerializableException // which indicates the SerDe we used is not Serializable. - def hiveQlTable = new Table(table) + @transient lazy val hiveQlTable = new Table(table) def hiveQlPartitions = partitions.map { p => new Partition(hiveQlTable, p) |