1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-29 03:22:01 +03:00
Files
mariadb-columnstore-engine/mysql-test/columnstore/devregression/t/mcs7158_regression_bug4767.test
Daniel Lee 4c9d6e39ac Dlee mtr restructure (#2494)
* Restructured test suites and added autopilot and extended suites

* Updated autopilot with correct branch - develop

* Moved setup test case to a 'setup' directory, for consistency

* Fixed a path issue

* Updated some tests cases to keep up with development

Co-authored-by: root <root@rocky8.localdomain>
2022-08-09 21:20:56 +03:00

44 lines
1.1 KiB
Plaintext

# -------------------------------------------------------------- #
# Test case migrated from regression test suite: bug4767.sql
#
# Author: Daniel Lee, daniel.lee@mariadb.com
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
#
USE tpch1;
#
drop table if exists cat;
drop table if exists dog;
create table cat(id int, f float, d double)engine=columnstore;
create table dog(id int, f float, d double)engine=columnstore;
insert into cat values
(1, 1.234, 1.2343),
(2, 989.789, 999.2343),
(3, null, null),
(4, 9121, 9999);
insert into dog values
(1, 989.789, 999.2343),
(2, null, null),
(3, 1.23234, 1.232343),
(4, 91215, 9999);
select 'q1', cat.id, dog.id from cat join dog on cat.f = dog.f;
select 'q2', cat.id, dog.id from cat join dog on cat.d = dog.d;
update dog, cat set dog.id=100+dog.id where dog.f = cat.f;
select 'q3', dog.* from dog;
update cat, dog set cat.id=100+cat.id where dog.d = cat.d;
select 'q4', cat.* from cat;
select 'q5', cat.id, dog.id from cat join dog on cat.f = dog.f and cat.d = dog.d;
drop table cat;
drop table dog;
#