ganeshashree commented on code in PR #3231:
URL: https://github.com/apache/hive/pull/3231#discussion_r873194842
##########
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/info/show/status/formatter/ShowTableStatusFormatter.java:
##########
@@ -123,13 +123,17 @@ FileData getFileData(HiveConf conf, List<Path> locations,
Path tablePath) throws
if (!fileData.unknown) {
for (Path location : locations) {
try {
- FileStatus status = fileSystem.getFileStatus(location);
+ // Use right FileSystem object for partition in customized location
+ FileSystem locationFileSystem =
location.toString().startsWith(tablePath.toString()) ? fileSystem
+ : location.getFileSystem(conf);
Review Comment:
@ayushtkn Thanks for reviewing. It makes sense to match scheme and
authority. Please review the updated PR.
--
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]