[
https://issues.apache.org/jira/browse/DRILL-7167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16817892#comment-16817892
]
ASF GitHub Bot commented on DRILL-7167:
---------------------------------------
arina-ielchiieva commented on pull request #1747: DRILL-7167: Implemented
DESCRIBE TABLE statement
URL: https://github.com/apache/drill/pull/1747#discussion_r275321184
##########
File path:
exec/java-exec/src/test/java/org/apache/drill/exec/sql/TestInfoSchema.java
##########
@@ -220,7 +239,29 @@ public void
describeWhenSameTableNameExistsInMultipleSchemas() throws Exception{
.baselineValues("TABLE_TYPE", "CHARACTER VARYING", "NO")
.go();
} finally {
- test("DROP VIEW dfs.tmp.`TABLES`");
+ test("DROP VIEW IF EXISTS dfs.tmp.`TABLES`");
+ }
+ }
+
+ @Test
+ public void
describeWhenSameTableNameExistsInMultipleSchemasWithTableKeyword() throws
Exception{
+ try {
+ test("USE dfs.tmp");
+ test("CREATE OR REPLACE VIEW `TABLES` AS SELECT full_name FROM
cp.`employee.json`");
Review comment:
Use select from values instead of cp (ex: `select 'A' as c from
(values(1))`), this would load only one row which is faster than all rows from
`employee.json`.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
> DESCRIBE TABLE statement is not implemented
> --------------------------------------------
>
> Key: DRILL-7167
> URL: https://issues.apache.org/jira/browse/DRILL-7167
> Project: Apache Drill
> Issue Type: Bug
> Affects Versions: 1.16.0
> Reporter: Dmytriy Grinchenko
> Assignee: Dmytriy Grinchenko
> Priority: Major
> Labels: doc-impacting
> Fix For: 1.17.0
>
>
> DESCRIBE dfs.tmp.`table` - works fineĀ
> DESCRIBE TABLE dfs.tmp.`table` - fails with error:
> {code:java}
> Error: PARSE ERROR: org.apache.calcite.sql.SqlBasicCall cannot be cast to
> org.apache.calcite.sql.SqlIdentifier
> {code}
> DESCRIBE TABLE should work the same as DESCRIBE;
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)