[
https://issues.apache.org/jira/browse/DRILL-8394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17682481#comment-17682481
]
ASF GitHub Bot commented on DRILL-8394:
---------------------------------------
jnturton opened a new pull request, #2745:
URL: https://github.com/apache/drill/pull/2745
# [DRILL-8394](https://issues.apache.org/jira/browse/DRILL-8394): ANALYZE
TABLE ... COMPUTE STATISTICS fails with a trailing slash
## Description
1. Add a method to extract the table name from a SqlIdentifier, trimming
trailing slashes in the process.
2. Add a unit test.
3. Fix the spelling error in the class name
org.apache.drill.exec.planner.sql.SchemaUtilites.
## Documentation
N/A
## Testing
New unit test.
> ANALYZE TABLE ... COMPUTE STATISTICS fails with a trailing slash
> ----------------------------------------------------------------
>
> Key: DRILL-8394
> URL: https://issues.apache.org/jira/browse/DRILL-8394
> Project: Apache Drill
> Issue Type: Bug
> Components: Metadata
> Affects Versions: 1.20.3
> Reporter: James Turton
> Assignee: James Turton
> Priority: Trivial
> Fix For: 1.21.0
>
>
> Given a directory cstest containing a single parquet file both of the
> following commands should succeed.
> {code:java}
> apache drill> analyze table dfs.tmp.`cstest` compute statistics;
> Fragment 0_0
> Number of records written 41 row selected (1.754 seconds)
> apache drill> analyze table dfs.tmp.`cstest/` compute statistics;
> ok false
> summary Table cstest/ is not supported by ANALYZE. Support is currently
> limited to directory-based Parquet tables. {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)