Skip to content

Commit a7b32a2

Browse files
committed
Update HiveMetastoreCatalog.scala
I think it's better to defined hiveQlTable as a val
1 parent e34922a commit a7b32a2

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+
val hiveQlTable = new Table(table)
262262

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

0 commit comments

Comments
 (0)