Skip to content

Commit ab3c6a4

Browse files
baishuomarmbrus
authored andcommitted
[SQL]Update HiveMetastoreCatalog.scala
I think it's better to defined hiveQlTable as a val Author: baishuo(白硕) <[email protected]> Closes apache#1569 from baishuo/patch-1 and squashes the following commits: dc2f895 [baishuo(白硕)] Update HiveMetastoreCatalog.scala a7b32a2 [baishuo(白硕)] Update HiveMetastoreCatalog.scala
1 parent a19d8c8 commit ab3c6a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ private[hive] case class MetastoreRelation
258258
// org.apache.hadoop.hive.ql.metadata.Partition will cause a NotSerializableException
259259
// which indicates the SerDe we used is not Serializable.
260260

261-
def hiveQlTable = new Table(table)
261+
@transient lazy val hiveQlTable = new Table(table)
262262

263263
def hiveQlPartitions = partitions.map { p =>
264264
new Partition(hiveQlTable, p)

0 commit comments

Comments
 (0)