Files
impala/testdata/workloads/functional-query/queries/QueryTest/udf-errors.test
Dan Hecht 2916132283 S3: enable more tests for S3
As needed, fix up file paths and other misc things to get
more test cases running against S3.

Change-Id: If4eaf9200f2abd17074080a37cd0225d977200ad
Reviewed-on: http://gerrit.cloudera.org:8080/167
Reviewed-by: Dan Hecht <dhecht@cloudera.com>
Tested-by: Internal Jenkins
2015-03-11 16:39:39 -07:00

36 lines
1011 B
Plaintext

====
---- QUERY
create database if not exists udf_test_errors;
---- RESULTS
====
---- QUERY
create function if not exists udf_test_errors.hive_pi() returns double
location '$FILESYSTEM_PREFIX/test-warehouse/hive-exec.jar'
symbol='org.apache.hadoop.hive.ql.udf.UDFPI';
---- RESULTS
====
---- QUERY
create function if not exists udf_test_errors.foo() returns double
location '$FILESYSTEM_PREFIX/test-warehouse/not-a-real-file.so'
symbol='FnDoesNotExist';
---- CATCH
Could not load binary: $FILESYSTEM_PREFIX/test-warehouse/not-a-real-file.so
====
---- QUERY
create function if not exists udf_test_errors.foo() returns double
location '$FILESYSTEM_PREFIX/test-warehouse/not-a-real-file.so'
symbol='FnDoesNotExist';
---- CATCH
Could not load binary: $FILESYSTEM_PREFIX/test-warehouse/not-a-real-file.so
====
---- QUERY
drop database udf_test_errors;
---- CATCH
Cannot drop non-empty database: udf_test_errors
====
---- QUERY
drop function udf_test_errors.hive_pi();
drop database udf_test_errors;
---- RESULTS
====