Files
impala/testdata/workloads/functional-query/queries/QueryTest/hbase-inserts.test

70 lines
1.6 KiB
Plaintext

====
---- QUERY
insert into table hbaseinsertalltypesagg
select id, bigint_col, bool_col, date_string_col, double_col, float_col,
int_col, smallint_col, string_col, timestamp_col, tinyint_col from alltypesagg
---- RESULTS
: 10000
---- SETUP
RELOAD hbaseinsertalltypesagg
====
---- QUERY
select id, bool_col from hbaseinsertalltypesagg
WHERE id > 300
ORDER BY id
LIMIT 2
---- TYPES
int, boolean
---- RESULTS
301,false
302,true
====
---- QUERY
insert into table hbaseinsertalltypesagg
select 9999999, bigint_col, false, date_string_col, double_col, float_col,
int_col, smallint_col, string_col, timestamp_col, tinyint_col from alltypesagg
---- RESULTS
: 10000
---- SETUP
RELOAD hbaseinsertalltypesagg
====
---- QUERY
select id, bool_col from hbaseinsertalltypesagg
WHERE id = 9999999
ORDER BY id
LIMIT 2
---- TYPES
int, boolean
---- RESULTS
9999999,false
====
---- QUERY
# test insert into ... select *
# using limit 1 to reduce execution time
insert into table hbaseinsertalltypesagg
select * from hbaseinsertalltypesagg limit 1
---- RESULTS
: 1
---- SETUP
RELOAD hbaseinsertalltypesagg
====
---- QUERY
# test inserting Hive's default text representation of NULL '\N'
# and make sure a scan returns the string and not NULL
insert into table hbaseinsertalltypesagg
select 9999999, bigint_col, false, "\\N", double_col, float_col,
int_col, smallint_col, "\\N", timestamp_col, tinyint_col from alltypesagg limit 1
---- RESULTS
: 1
---- SETUP
RELOAD hbaseinsertalltypesagg
====
---- QUERY
select id, date_string_col, string_col from hbaseinsertalltypesagg
where id = 9999999
---- TYPES
int, string, string
---- RESULTS
9999999,'\N','\N'
====