arina-ielchiieva commented on a change in 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]
With regards,
Apache Git Services