Files
impala/testdata/workloads/functional-query/queries/QueryTest/kudu_alter.test
Matthew Jacobs d113205cee IMPALA-3650: DISTRIBUTE BY required for managed Kudu tables
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
2016-08-19 02:14:39 +00:00

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
====