Skip to content

Commit

Permalink
[SQL]Update HiveMetastoreCatalog.scala
Browse files Browse the repository at this point in the history
I think it's better to defined hiveQlTable as a val

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

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

dc2f895 [baishuo(白硕)] Update HiveMetastoreCatalog.scala
a7b32a2 [baishuo(白硕)] Update HiveMetastoreCatalog.scala
  • Loading branch information
baishuo authored and marmbrus committed Jul 25, 2014
1 parent a19d8c8 commit ab3c6a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ab3c6a4

Please sign in to comment.