AngersZhuuuu commented on a change in pull request #35734:
URL: https://github.com/apache/spark/pull/35734#discussion_r822228457
##########
File path:
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala
##########
@@ -204,10 +204,23 @@ private[hive] class HiveMetastoreCatalog(sparkSession:
SparkSession) extends Log
(options, None)
}
+ lazy val fs =
tablePath.getFileSystem(sparkSession.sparkContext.hadoopConfiguration)
+ val isSymlinkTextFormat =
SymlinkTextInputFormatUtil.isSymlinkTextFormat(relation.tableMeta)
+
+ val symlinkTargets = if (isSymlinkTextFormat) {
+ SymlinkTextInputFormatUtil.getTargetPathsFromSymlink(fs, tablePath)
Review comment:
When table is partitioned and `lazyPruningEnabled ` = false, this value
is not used, I think we don't need to get this value earliear
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]