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/r/mcs7175_regression_bug5289.result
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

37 lines
1.0 KiB
Plaintext

USE tpch1;
drop table if exists bug5289a;
Warnings:
Note 1051 Unknown table 'tpch1.bug5289a'
drop table if exists bug5289b;
Warnings:
Note 1051 Unknown table 'tpch1.bug5289b'
drop view if exists bug5289b_v;
Warnings:
Note 4092 Unknown VIEW: 'tpch1.bug5289b_v'
create table bug5289a(
a decimal(10,0),
b varchar(30))
engine=columnstore;
create table bug5289b(
a char(4),
b varchar(30))
engine=columnstore;
insert into bug5289a values (1, 1), (2, 2), (3, 3), (4, 4);
insert into bug5289b values ('1', '1'), ('3', '3'), ('5', '5');
create or replace view bug5289_v as
select cast(a as decimal(10,0)) as a, b from bug5289b;
select 'q1', count(*) from bug5289a a,bug5289_v b where a.a = b.a;
q1 count(*)
q1 2
select 'q2', count(*) from bug5289a a left join bug5289_v b on (a.a = b.a);
q2 count(*)
q2 4
select 'q3', count(*) from bug5289a a, bug5289b b where a.a = cast(b.a as decimal(10,0));
q3 count(*)
q3 2
drop table if exists bug5289a;
drop table if exists bug5289b;
drop view if exists bug5289b_v;
Warnings:
Note 4092 Unknown VIEW: 'tpch1.bug5289b_v'