Github user arina-ielchiieva commented on a diff in the pull request:
https://github.com/apache/drill/pull/864#discussion_r128703501
--- Diff:
exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/handlers/ShowFileHandler.java
---
@@ -93,9 +94,9 @@ public PhysicalPlan getPlan(SqlNode sqlNode) throws
ValidationException, RelConv
List<ShowFilesCommandResult> rows = new ArrayList<>();
- for (FileStatus fileStatus : fs.list(false, new Path(defaultLocation,
fromDir))) {
+ for (FileStatus fileStatus : FileSystemUtil.listAll(fs, new
Path(defaultLocation, fromDir), false)) {
ShowFilesCommandResult result = new
ShowFilesCommandResult(fileStatus.getPath().getName(), fileStatus.isDir(),
-
!fileStatus.isDir(), fileStatus.getLen(),
+
!fileStatus.isDirectory(), fileStatus.getLen(),
--- End diff --
Sure, good catch.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---