mirror of
https://github.com/apache/impala.git
synced 2026-01-03 15:00:52 -05:00
IMPALA-5903: Inconsistent specification of result set and result set metadata
Before this commit it was quite random which DDL oprations returned a result set and which didn't. With this commit, every DDL operations return a summary of its execution. They declare their result set schema in Frontend.java, and provide the summary in CalatogOpExecutor.java. Updated the tests according to the new behavior. Change-Id: Ic542fb8e49e850052416ac663ee329ee3974e3b9 Reviewed-on: http://gerrit.cloudera.org:8080/9090 Reviewed-by: Alex Behm <alex.behm@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
committed by
Impala Public Jenkins
parent
27c028f057
commit
2ee914d5b3
@@ -2,6 +2,7 @@
|
||||
---- QUERY
|
||||
create database $DATABASE_2 comment "For testing"
|
||||
---- RESULTS
|
||||
'Database has been created.'
|
||||
====
|
||||
---- QUERY
|
||||
show databases like "$DATABASE_2"
|
||||
@@ -15,11 +16,13 @@ STRING, STRING
|
||||
# IF NOT EXISTS is specified.
|
||||
create database if not exists $DATABASE_2
|
||||
---- RESULTS
|
||||
'Database already exists.'
|
||||
====
|
||||
---- QUERY
|
||||
# Test dropping the database.
|
||||
drop database $DATABASE_2
|
||||
---- RESULTS
|
||||
'Database has been dropped.'
|
||||
====
|
||||
---- QUERY
|
||||
show databases like "$DATABASE_2"
|
||||
@@ -31,6 +34,7 @@ STRING, STRING
|
||||
# Dropping a non-existent databases is ok with IF EXISTS
|
||||
drop database if exists $DATABASE_2
|
||||
---- RESULTS
|
||||
'Database has been dropped.'
|
||||
====
|
||||
---- QUERY
|
||||
# Test DROP DATABASE ... CASCADE
|
||||
@@ -50,6 +54,7 @@ create function if not exists $DATABASE_cascade.f1() returns string
|
||||
create aggregate function if not exists $DATABASE_cascade.f2(int, string) RETURNS int
|
||||
location '$FILESYSTEM_PREFIX/test-warehouse/libTestUdas.so' UPDATE_FN='TwoArgUpdate'
|
||||
---- RESULTS
|
||||
'Function has been created.'
|
||||
====
|
||||
---- QUERY
|
||||
show tables in $DATABASE_cascade
|
||||
@@ -80,6 +85,7 @@ STRING, STRING, STRING, STRING
|
||||
# as the database itself.
|
||||
drop database $DATABASE_cascade cascade
|
||||
---- RESULTS
|
||||
'Database has been dropped.'
|
||||
====
|
||||
---- QUERY
|
||||
show databases like '$DATABASE_cascade'
|
||||
@@ -99,6 +105,7 @@ STRING,STRING
|
||||
---- QUERY
|
||||
drop database $DATABASE_restrict restrict
|
||||
---- RESULTS
|
||||
'Database has been dropped.'
|
||||
====
|
||||
---- QUERY
|
||||
show databases like '$DATABASE_restrict'
|
||||
|
||||
Reference in New Issue
Block a user