mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-04-21 19:45:56 +03:00
46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
# -------------------------------------------------------------- #
|
|
# Test case migrated from regression test suite: bug4027.sql
|
|
#
|
|
# Author: Daniel Lee, daniel.lee@mariadb.com
|
|
# -------------------------------------------------------------- #
|
|
#
|
|
--source ../include/have_columnstore.inc
|
|
#
|
|
USE tpch1;
|
|
#
|
|
--disable_warnings
|
|
drop table if exists product;
|
|
drop table if exists product_tag;
|
|
--enable_warnings
|
|
|
|
create table product_tag (product_id bigint)engine=columnstore;
|
|
|
|
CREATE TABLE `product` (
|
|
`product_id` bigint(20) DEFAULT NULL,
|
|
`price` bigint(20) DEFAULT NULL,
|
|
`short_description` varchar(7998) DEFAULT NULL,
|
|
`brand` varchar(254) DEFAULT NULL,
|
|
`modified_dtm` datetime DEFAULT NULL,
|
|
`created_dtm` datetime DEFAULT NULL,
|
|
`modified_by` int(11) DEFAULT NULL
|
|
) engine=columnstore DEFAULT CHARSET=latin1 ;
|
|
|
|
insert into product_tag values (1),(2),(3),(4);
|
|
insert into product values (1,22,'fes','rets','2011-12-12 12:12:12','2011-12-13 1:1:10',343);
|
|
insert into product values (3,22,'fes','rets','2011-12-12 12:12:12','2011-12-13 1:1:10',343);
|
|
|
|
update
|
|
product p join
|
|
(select product_id from product_tag limit 1000) t using (product_id)
|
|
set brand=p.product_id, price=555, modified_dtm='2011-12-15 15:15:30',
|
|
short_description=concat(short_description,modified_by);
|
|
|
|
select * from product;
|
|
|
|
--disable_warnings
|
|
drop table product;
|
|
drop table product_tag;
|
|
--enable_warnings
|
|
#
|
|
|