mirror of
https://github.com/apache/impala.git
synced 2026-01-05 21:00:54 -05:00
As of Kudu 0.9, DISTRIBUTE BY is now required when creating a new Kudu table. Create table analysis, data loading, and tests are updated to reflect this. This also bumps the Kudu version to 0.10.0. Change-Id: Ieb15110b10b28ef6dd8ec136c2522b5f44dca43e Reviewed-on: http://gerrit.cloudera.org:8080/3987 Reviewed-by: Matthew Jacobs <mj@cloudera.com> Tested-by: Internal Jenkins
44 lines
975 B
Plaintext
44 lines
975 B
Plaintext
====
|
|
---- QUERY
|
|
create table simple (id int, name string, valf float, vali bigint)
|
|
distribute by hash into 3 buckets
|
|
TBLPROPERTIES(
|
|
'storage_handler' = 'com.cloudera.kudu.hive.KuduStorageHandler',
|
|
'kudu.table_name' = 'query_test_simple',
|
|
'kudu.split_keys' = '[[10], [30]]',
|
|
'kudu.master_addresses' = '127.0.0.1',
|
|
'kudu.key_columns' = 'id'
|
|
)
|
|
---- RESULTS
|
|
====
|
|
---- QUERY
|
|
-- Alter master address to a different location
|
|
alter table simple set tblproperties (
|
|
'kudu.master_addresses' = '192.168.0.1'
|
|
)
|
|
---- RESULTS
|
|
====
|
|
---- QUERY
|
|
-- Show that new address is picked up
|
|
describe formatted simple
|
|
---- RESULTS: VERIFY_IS_SUBSET
|
|
'','kudu.master_addresses','192.168.0.1 '
|
|
---- TYPES
|
|
STRING,STRING,STRING
|
|
====
|
|
---- QUERY
|
|
alter table simple set tblproperties ('kudu.master_addresses' = '127.0.0.1')
|
|
---- RESULTS
|
|
====
|
|
---- QUERY
|
|
alter table simple rename to simple_new;
|
|
---- RESULTS
|
|
====
|
|
---- QUERY
|
|
select count(*) from simple_new;
|
|
---- RESULTS
|
|
0
|
|
---- TYPES
|
|
BIGINT
|
|
====
|