mirror of
https://github.com/apache/impala.git
synced 2026-01-10 09:00:16 -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
@@ -4,6 +4,7 @@ create function if not exists hive_pi() returns double
|
||||
location '$FILESYSTEM_PREFIX/test-warehouse/hive-exec.jar'
|
||||
symbol='org.apache.hadoop.hive.ql.udf.UDFPI';
|
||||
---- RESULTS
|
||||
'Function has been created.'
|
||||
====
|
||||
---- QUERY
|
||||
create function if not exists foo() returns double
|
||||
@@ -33,6 +34,7 @@ create function if not exists twenty_args(int, int, int, int, int, int,
|
||||
location '$FILESYSTEM_PREFIX/test-warehouse/libTestUdfs.so'
|
||||
symbol='TwentyArgs';
|
||||
---- RESULTS
|
||||
'Function has been created.'
|
||||
====
|
||||
---- QUERY
|
||||
# Verifies that interpretation can support up to 20 arguments
|
||||
@@ -49,6 +51,7 @@ create function if not exists twenty_one_args(int, int, int, int, int, int,
|
||||
location '$FILESYSTEM_PREFIX/test-warehouse/libTestUdfs.so'
|
||||
symbol='TwentyOneArgs';
|
||||
---- RESULTS
|
||||
'Function has been created.'
|
||||
====
|
||||
---- QUERY
|
||||
# Verifies that interpretation fails with more than 20 arguments.
|
||||
@@ -63,6 +66,7 @@ create function if not exists nine_args_ir(int, int, int, int, int, int,
|
||||
location '$FILESYSTEM_PREFIX/test-warehouse/test-udfs.ll'
|
||||
symbol='NineArgs';
|
||||
---- RESULTS
|
||||
'Function has been created.'
|
||||
====
|
||||
---- QUERY
|
||||
select nine_args_ir(1,2,3,4,5,6,7,8,9);
|
||||
@@ -74,12 +78,14 @@ create function if not exists bad_expr(double) returns boolean
|
||||
location '$FILESYSTEM_PREFIX/test-warehouse/libTestUdfs.so'
|
||||
symbol='BadExpr' prepare_fn='BadExprPrepare' close_fn='BadExprClose';
|
||||
---- RESULTS
|
||||
'Function has been created.'
|
||||
====
|
||||
---- QUERY
|
||||
create function if not exists bad_expr2(double) returns boolean
|
||||
location '$FILESYSTEM_PREFIX/test-warehouse/libTestUdfs.so'
|
||||
symbol='BadExpr' prepare_fn='BadExpr2Prepare' close_fn='BadExprClose';
|
||||
---- RESULTS
|
||||
'Function has been created.'
|
||||
====
|
||||
---- QUERY
|
||||
select count(t1.int_col) from functional.alltypes t1 join functional.alltypes t2
|
||||
@@ -120,4 +126,5 @@ drop function nine_args_ir(int, int, int, int, int, int, int, int, int);
|
||||
drop function bad_expr(double);
|
||||
drop function bad_expr2(double);
|
||||
---- RESULTS
|
||||
'Function has been dropped.'
|
||||
====
|
||||
|
||||
Reference in New Issue
Block a user