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_r275327463
##########
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:
Just realized that it's a view creation. You can leave it as is.
----------------------------------------------------------------
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