File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
sql/hive/src/main/scala/org/apache/spark/sql/hive Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments