You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ma...@apache.org on 2014/07/25 23:00:07 UTC

git commit: [SQL]Update HiveMetastoreCatalog.scala

Repository: spark
Updated Branches:
  refs/heads/master a19d8c89d -> ab3c6a455


[SQL]Update HiveMetastoreCatalog.scala

I think it's better to defined hiveQlTable as a val

Author: baishuo(白硕) <vc...@hotmail.com>

Closes #1569 from baishuo/patch-1 and squashes the following commits:

dc2f895 [baishuo(白硕)] Update HiveMetastoreCatalog.scala
a7b32a2 [baishuo(白硕)] Update HiveMetastoreCatalog.scala


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/ab3c6a45
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/ab3c6a45
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/ab3c6a45

Branch: refs/heads/master
Commit: ab3c6a455c0b50e3fcfea3bbb3b9035aba8f06e3
Parents: a19d8c8
Author: baishuo(白硕) <vc...@hotmail.com>
Authored: Fri Jul 25 13:59:45 2014 -0700
Committer: Michael Armbrust <mi...@databricks.com>
Committed: Fri Jul 25 13:59:45 2014 -0700

----------------------------------------------------------------------
 .../scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/ab3c6a45/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala
----------------------------------------------------------------------
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 8db60d3..156b090 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)