Files
impala/testdata/workloads/functional-query/queries/QueryTest/load-native-functions.test
Skye Wanderman-Milne b41ff0c8cd Modify test-udfs.cc so there are no undefined symbols in shared library.
AnalyzeDDLTest was failing because the fesupport binary couldn't
resolve a function used in libTestUdfs.so (the function was defined in
udf.cc, rather than udf.h). I couldn't figure out how to cleanly build
udf.cc into the libTestUdfs.so, so instead I removed the use of the
function in test-udfs.cc.

Change-Id: I81243547584a5b49a5f9265d0d17e035e18d6110
Reviewed-on: http://gerrit.ent.cloudera.com:8080/694
Reviewed-by: Skye Wanderman-Milne <skye@cloudera.com>
Tested-by: Skye Wanderman-Milne <skye@cloudera.com>
2014-01-08 10:53:27 -08:00

92 lines
3.7 KiB
Plaintext

====
---- QUERY
drop function if exists udf_test.identity(boolean);
drop function if exists udf_test.identity(tinyint);
drop function if exists udf_test.identity(smallint);
drop function if exists udf_test.identity(int);
drop function if exists udf_test.identity(bigint);
drop function if exists udf_test.identity(float);
drop function if exists udf_test.identity(double);
drop function if exists udf_test.identity(string);
drop function if exists udf_test.identity(timestamp);
drop function if exists udf_test.all_types_fn(
string, boolean, tinyint, smallint, int, bigint, float, double);
drop function if exists udf_test.no_args();
drop function if exists udf_test.var_and(boolean...);
drop function if exists udf_test.var_sum(int...);
drop function if exists udf_test.var_sum(double...);
drop function if exists udf_test.var_sum(string...);
drop function if exists udf_test.var_sum_multiply(double, int...);
drop function if exists udf_test.constant_timestamp();
drop function if exists uda_test.test_count(int);
drop function if exists uda_test.hll(int);
create database if not exists udf_test;
create database if not exists uda_test;
create function udf_test.identity(boolean) returns boolean
location '/test-warehouse/libTestUdfs.so' symbol='Identity';
create function udf_test.identity(tinyint) returns tinyint
location '/test-warehouse/libTestUdfs.so' symbol='Identity';
create function udf_test.identity(smallint) returns smallint
location '/test-warehouse/libTestUdfs.so' symbol='Identity';
create function udf_test.identity(int) returns int
location '/test-warehouse/libTestUdfs.so' symbol='Identity';
create function udf_test.identity(bigint) returns bigint
location '/test-warehouse/libTestUdfs.so' symbol='Identity';
create function udf_test.identity(float) returns float
location '/test-warehouse/libTestUdfs.so' symbol='Identity';
create function udf_test.identity(double) returns double
location '/test-warehouse/libTestUdfs.so' symbol='Identity';
create function udf_test.identity(string) returns string
location '/test-warehouse/libTestUdfs.so'
symbol='_Z8IdentityPN10impala_udf15FunctionContextERKNS_9StringValE';
create function udf_test.identity(timestamp) returns timestamp
location '/test-warehouse/libTestUdfs.so'
symbol='_Z8IdentityPN10impala_udf15FunctionContextERKNS_12TimestampValE';
create function udf_test.all_types_fn(
string, boolean, tinyint, smallint, int, bigint, float, double)
returns int
location '/test-warehouse/libTestUdfs.so' symbol='AllTypes';
create function udf_test.no_args() returns string
location '/test-warehouse/libTestUdfs.so'
symbol='_Z6NoArgsPN10impala_udf15FunctionContextE';
create function udf_test.var_and(boolean...) returns boolean
location '/test-warehouse/libTestUdfs.so' symbol='VarAnd';
create function udf_test.var_sum(int...) returns int
location '/test-warehouse/libTestUdfs.so' symbol='VarSum';
create function udf_test.var_sum(double...) returns double
location '/test-warehouse/libTestUdfs.so' symbol='VarSum';
create function udf_test.var_sum(string...) returns int
location '/test-warehouse/libTestUdfs.so' symbol='VarSum';
create function udf_test.var_sum_multiply(double, int...) returns double
location '/test-warehouse/libTestUdfs.so'
symbol='_Z14VarSumMultiplyPN10impala_udf15FunctionContextERKNS_9DoubleValEiPKNS_6IntValE';
create aggregate function uda_test.test_count(int) returns bigint
location '/test-warehouse/libudasample.so' update_fn='CountUpdate';
create aggregate function uda_test.hll(int) returns string
location '/test-warehouse/libudasample.so' update_fn='HllUpdate';
create function udf_test.constant_timestamp() returns timestamp
location '/test-warehouse/libTestUdfs.so'
symbol='_Z17ConstantTimestampPN10impala_udf15FunctionContextE';
====