Skip to content
Permalink
Browse files
DRILL-6834: Added tests to verify Drill option exec.return_result_set…
…_for_ddl (#523)
  • Loading branch information
agozhiy authored and Agirish committed Dec 14, 2018
1 parent e3ed1b6 commit 3c734a2ec5792b2b5f34cb02dcc593d3a587f973
Showing 23 changed files with 75 additions and 0 deletions.
@@ -0,0 +1,5 @@
set `exec.return_result_set_for_ddl` = false;
--@test
create table `DRILL_6834_table_no_result_set` as select * from cp.`employee.json` limit 5;
drop table `DRILL_6834_table_no_result_set`;
reset `exec.return_result_set_for_ddl`;
@@ -0,0 +1,5 @@
set `exec.return_result_set_for_ddl` = false;
--@test
create temporary table dfs.tmp.`DRILL_6834_temp_table_no_result_set` as select * from cp.`employee.json` limit 5;
drop table dfs.tmp.`DRILL_6834_temp_table_no_result_set`;
reset `exec.return_result_set_for_ddl`;
@@ -0,0 +1,5 @@
set `exec.return_result_set_for_ddl` = false;
--@test
create view `DRILL_6834_view_no_result_set` as select * from cp.`employee.json` limit 5;
drop view `DRILL_6834_view_no_result_set`;
reset `exec.return_result_set_for_ddl`;
@@ -0,0 +1,5 @@
set `exec.return_result_set_for_ddl` = false;
create table `DRILL_6834_drop_table_no_result_set` as select * from cp.`employee.json` limit 5;
--@test
drop table `DRILL_6834_drop_table_no_result_set`;
reset `exec.return_result_set_for_ddl`;
@@ -0,0 +1,5 @@
set `exec.return_result_set_for_ddl` = false;
create temporary table `DRILL_6834_drop_temporary_table_no_result_set` as select * from cp.`employee.json` limit 5;
--@test
drop table `DRILL_6834_drop_temporary_table_no_result_set`;
reset `exec.return_result_set_for_ddl`;
@@ -0,0 +1,5 @@
set `exec.return_result_set_for_ddl` = false;
create view `DRILL_6834_drop_view_no_result_set` as select * from cp.`employee.json` limit 5;
--@test
drop view `DRILL_6834_drop_view_no_result_set`;
reset `exec.return_result_set_for_ddl`;
@@ -0,0 +1,5 @@
set `exec.return_result_set_for_ddl` = false;
create table `DRILL_6834_refresh_metadata_table_no_result_set` as select * from cp.`employee.json` limit 5;
refresh table metadata `DRILL_6834_refresh_metadata_table_no_result_set`;
drop table `DRILL_6834_refresh_metadata_table_no_result_set`;
reset `exec.return_result_set_for_ddl`;
@@ -0,0 +1,3 @@
set `exec.return_result_set_for_ddl` = false;
reset `store.format`;
reset `exec.return_result_set_for_ddl`;
@@ -0,0 +1,5 @@
Sheri Nowmer
Derrick Whelply
Michael Spence
Maya Gutierrez
Roberta Damstra
@@ -0,0 +1,3 @@
set `exec.return_result_set_for_ddl` = false;
select first_name, last_name from cp.`employee.json` order by employee_id limit 5;
reset `exec.return_result_set_for_ddl`;
@@ -0,0 +1,5 @@
set `exec.return_result_set_for_ddl` = false;
--@test
set `store.format` = 'json';
reset `store.format`;
reset `exec.return_result_set_for_ddl`;
@@ -0,0 +1,3 @@
set `exec.return_result_set_for_ddl` = false;
use dfs.`drillTestDir`;
reset `exec.return_result_set_for_ddl`;
@@ -0,0 +1,21 @@
{
"testId": "no_result_set",
"type": "group",
"description": "Test Drill option to not return a result set",
"categories": [
"functional"
],
"matrices": [
{
"query-file": ".*.sql",
"schema": "dfs.drillTestDir",
"output-format": "tsv",
"expected-file": ".*.e_tsv",
"verification-type": [
"in-memory"
]
}
],
"datasources": [
]
}

0 comments on commit 3c734a2

Please sign in to comment.