This is an automated email from the ASF dual-hosted git repository.
gparai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/drill.git
The following commit(s) were added to refs/heads/master by this push:
new e5e8419 DRILL-7085: Fix table-path check in AnalyzeTableHandler
e5e8419 is described below
commit e5e8419ab6fc1761cc7a6055b02f4300525e936e
Author: Gautam Parai <[email protected]>
AuthorDate: Fri Mar 8 13:40:22 2019 -0800
DRILL-7085: Fix table-path check in AnalyzeTableHandler
closes #1685
---
.../org/apache/drill/exec/planner/sql/handlers/AnalyzeTableHandler.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/handlers/AnalyzeTableHandler.java
b/exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/handlers/AnalyzeTableHandler.java
index 8f62713..e751e8c 100644
---
a/exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/handlers/AnalyzeTableHandler.java
+++
b/exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/handlers/AnalyzeTableHandler.java
@@ -134,7 +134,7 @@ public class AnalyzeTableHandler extends DefaultSqlHandler {
formatSelection.getFormat()).getFsConf());
Path selectionRoot = formatSelection.getSelection().getSelectionRoot();
- if (!selectionRoot.getName().equals(tableName) ||
!fs.getFileStatus(selectionRoot).isDirectory()) {
+ if (!selectionRoot.toUri().getPath().endsWith(tableName) ||
!fs.getFileStatus(selectionRoot).isDirectory()) {
return DrillStatsTable.notSupported(context, tableName);
}
// Do not recompute statistics, if stale