Skip to content

Commit 005649b

Browse files
committed
Update comment.
1 parent 35d86f3 commit 005649b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,13 +721,17 @@ private[hive] case class MetastoreRelation
721721
// to get Partition keys at here. We do this to make sure Hive will not try to use
722722
// any metastore utility functions. All of interactions between metastore and related
723723
// parts should be done through our ClientWrapper.
724+
// Without the guard of ClientWrapper, we cannot touch metastore client (e.g. Hive class) and
725+
// the conf associated with the metastore client (Hive.get().getConf()).
724726
/** PartitionKey attributes */
725727
val partitionKeys = hiveQlTable.getTTable.getPartitionKeys.map(_.toAttribute)
726728

727729
// Since we create the TTable inside hiveQlTable manually, we can use TTbale's interface
728730
// to get non-partition columns at here. We do this to make sure Hive will not try to use
729731
// any metastore utility functions. All of interactions between metastore and related
730732
// parts should be done through our ClientWrapper.
733+
// Without the guard of ClientWrapper, we cannot touch metastore client (e.g. Hive class) and
734+
// the conf associated with the metastore client (Hive.get().getConf()).
731735
/** Non-partitionKey attributes */
732736
val attributes = hiveQlTable.getTTable.getSd.getCols.map(_.toAttribute)
733737

0 commit comments

Comments
 (0)