| --! qt:dataset:alltypesorc |
| set hive.support.concurrency=true; |
| set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager; |
| |
| |
| dfs ${system:test.dfs.mkdir} ${system:test.tmp.dir}/update_orig_table; |
| dfs -copyFromLocal ../../data/files/alltypesorc ${system:test.tmp.dir}/update_orig_table/00000_0; |
| |
| -- SORT_QUERY_RESULTS |
| |
| create table acid_uot( |
| ctinyint TINYINT, |
| csmallint SMALLINT, |
| cint INT, |
| cbigint BIGINT, |
| cfloat FLOAT, |
| cdouble DOUBLE, |
| cstring1 STRING, |
| cstring2 STRING, |
| ctimestamp1 TIMESTAMP, |
| ctimestamp2 TIMESTAMP, |
| cboolean1 BOOLEAN, |
| cboolean2 BOOLEAN) clustered by (cint) into 1 buckets stored as orc location '${system:test.tmp.dir}/update_orig_table' TBLPROPERTIES ('transactional'='true'); |
| |
| select * from acid_uot where cint < -1070551679; |
| |
| update acid_uot set cstring1 = 'fred' where cint < -1070551679; |
| |
| select * from acid_uot where cstring1 = 'fred'; |
| |
| select * from acid_uot where cint < -1070551679; |
| |
| dfs -rmr ${system:test.tmp.dir}/update_orig_table; |