srowen commented on code in PR #36485: URL: https://github.com/apache/spark/pull/36485#discussion_r868761212
########## sql/hive/src/main/scala/org/apache/spark/sql/hive/TableReader.scala: ########## @@ -175,7 +175,8 @@ class HadoopTableReader( def updateExistPathSetByPathPattern(pathPatternStr: String): Unit = { val pathPattern = new Path(pathPatternStr) val fs = pathPattern.getFileSystem(hadoopConf) - val matches = fs.globStatus(pathPattern) + val (matches, timeCost) = Utils.timeTakenMs(fs.globStatus(pathPattern)) + logInfo(s"Get FileStatus for path '$pathPatternStr' costs $timeCost ms.") Review Comment: OK, I don't feel super strongly about it. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org