1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00
Files
mariadb-columnstore-engine/mysql-test/columnstore/autopilot/t/mcs6892_outerjoin_oneTable.test
Daniel Lee 2606c91afd Dlee 22.08.2 updates (#2578)
* Sort test result so the test case would pass

* Server message has been changes

* Added schema name in query for rows in test case only.  Also use lower case schema name

* Changed database to lower case

* Run test case in its own database to avoid table already exists error

Co-authored-by: root <root@rocky8.localdomain>
2022-10-05 16:56:57 -05:00

29 lines
1.5 KiB
Plaintext
Executable File

# -------------------------------------------------------------- #
# Test case migrated from Autopilot outer join test suite
#
# Author: Daniel Lee, daniel.lee@mariadb.com
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
#
USE outerjoin;
#
sorted_result;
select n1.n_nationkey, n2.n_nationkey, n1.*, n2.* from nation n1 join nation n2 on n1.n_nationkey = n2.n_nationkey;
sorted_result;
select n1.n_nationkey, n2.n_nationkey, n1.*, n2.* from nation n1 left join nation n2 on n1.n_nationkey = n2.n_nationkey;
sorted_result;
select n1.n_nationkey, n2.n_nationkey, n1.*, n2.* from nation n1 right join nation n2 on n1.n_nationkey = n2.n_nationkey;
#
sorted_result;
select n1.n_nationkey, n2.n_nationkey, n1.*, n2.* from nation n1 join nation n2 on n1.n_nationkey = n2.n_nationkey where n1.n_nationkey >= 0;
sorted_result;
select n1.n_nationkey, n2.n_nationkey, n1.*, n2.* from nation n1 left join nation n2 on n1.n_nationkey = n2.n_nationkey where n1.n_nationkey >= 0;
sorted_result;
select n1.n_nationkey, n2.n_nationkey, n1.*, n2.* from nation n1 left join nation n2 on n1.n_nationkey = n2.n_nationkey where n2.n_nationkey >= 0;
sorted_result;
select n1.n_nationkey, n2.n_nationkey, n1.*, n2.* from nation n1 right join nation n2 on n1.n_nationkey = n2.n_nationkey where n1.n_nationkey >= 0;
sorted_result;
select n1.n_nationkey, n2.n_nationkey, n1.*, n2.* from nation n1 right join nation n2 on n1.n_nationkey = n2.n_nationkey where n2.n_nationkey >= 0;
#