mirror of
https://github.com/apache/impala.git
synced 2026-01-06 06:01:03 -05:00
Changes include: * Fix compile errors due to new column stats API and other stats related fixes. * Temporarily disable JDBC tests due to new serialization format in Hive .13 * Disable view compatibility tests until we can get them to work in Hive .13 * Test fixes due to Hive's type checking for partition column values Change-Id: I05cc6a95976e0e037be79d91bc330a06d2fdc46c
78 lines
2.8 KiB
Plaintext
78 lines
2.8 KiB
Plaintext
====
|
|
---- QUERY
|
|
drop function if exists udf_test.hive_pi();
|
|
drop function if exists udf_test.hive_round(double);
|
|
drop function if exists udf_test.hive_floor(double);
|
|
drop function if exists udf_test.hive_mod(int, int);
|
|
drop function if exists udf_test.hive_bin(bigint);
|
|
drop function if exists udf_test.hive_lower(string);
|
|
|
|
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);
|
|
|
|
create database if not exists udf_test;
|
|
|
|
create function udf_test.hive_pi() returns double
|
|
location '/test-warehouse/hive-exec.jar'
|
|
symbol='org.apache.hadoop.hive.ql.udf.UDFPI';
|
|
|
|
create function udf_test.hive_round(double) returns double
|
|
location '/test-warehouse/hive-exec.jar'
|
|
symbol='org.apache.hadoop.hive.ql.udf.UDFRound';
|
|
|
|
create function udf_test.hive_floor(double) returns bigint
|
|
location '/test-warehouse/hive-exec.jar'
|
|
symbol='org.apache.hadoop.hive.ql.udf.UDFFloor';
|
|
|
|
create function udf_test.hive_mod(int, int) returns int
|
|
location '/test-warehouse/hive-exec.jar'
|
|
symbol='org.apache.hadoop.hive.ql.udf.UDFPosMod';
|
|
|
|
create function udf_test.hive_bin(bigint) returns string
|
|
location '/test-warehouse/hive-exec.jar'
|
|
symbol='org.apache.hadoop.hive.ql.udf.UDFBin';
|
|
|
|
create function udf_test.hive_lower(string) returns string
|
|
location '/test-warehouse/hive-exec.jar'
|
|
symbol='org.apache.hadoop.hive.ql.udf.UDFLower';
|
|
|
|
create function udf_test.identity(boolean) returns boolean
|
|
location '/test-warehouse/impala-hive-udfs.jar'
|
|
symbol='com.cloudera.impala.TestUdf';
|
|
|
|
create function udf_test.identity(tinyint) returns tinyint
|
|
location '/test-warehouse/impala-hive-udfs.jar'
|
|
symbol='com.cloudera.impala.TestUdf';
|
|
|
|
create function udf_test.identity(smallint) returns smallint
|
|
location '/test-warehouse/impala-hive-udfs.jar'
|
|
symbol='com.cloudera.impala.TestUdf';
|
|
|
|
create function udf_test.identity(int) returns int
|
|
location '/test-warehouse/impala-hive-udfs.jar'
|
|
symbol='com.cloudera.impala.TestUdf';
|
|
|
|
create function udf_test.identity(bigint) returns bigint
|
|
location '/test-warehouse/impala-hive-udfs.jar'
|
|
symbol='com.cloudera.impala.TestUdf';
|
|
|
|
create function udf_test.identity(float) returns float
|
|
location '/test-warehouse/impala-hive-udfs.jar'
|
|
symbol='com.cloudera.impala.TestUdf';
|
|
|
|
create function udf_test.identity(double) returns double
|
|
location '/test-warehouse/impala-hive-udfs.jar'
|
|
symbol='com.cloudera.impala.TestUdf';
|
|
|
|
create function udf_test.identity(string) returns string
|
|
location '/test-warehouse/impala-hive-udfs.jar'
|
|
symbol='com.cloudera.impala.TestUdf';
|
|
====
|