Files
impala/testdata/workloads/functional-query/queries/QueryTest/kudu_alter.test
Martin Grund 8d56b7e23e KUDU-1029, KUDU-1087: Allow altering tblproperties()
Allows altering tblproperties. However, all changes are unchecked. In
the same way this patch allows to manually change the type of a Kudu
table from MANAGED to EXTERNAL by setting the "EXTERNAL" table property.

Change-Id: I08ae59534810bdc2f329f65d8aad8d64e58b9c8b
2015-09-03 16:44:10 -07:00

42 lines
940 B
Plaintext

====
---- QUERY
create table simple (id int, name string, valf float, vali bigint)
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
====