1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

Add test case

This commit is contained in:
Aleksei Antipovskii
2024-10-10 18:53:07 +02:00
committed by Leonid Fedorov
parent 63b93c607d
commit d02e2854ae
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,16 @@
DROP DATABASE IF EXISTS mcol5703;
CREATE DATABASE mcol5703;
USE mcol5703;
CREATE TABLE `doubles` (
`a` int(11),
`b` int(11)
) ENGINE=Columnstore DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
INSERT INTO doubles VALUES (1, 2), (2, 4);
SELECT a, b FROM doubles UNION VALUES (3, 6);
ERROR 42000: The storage engine for the table doesn't support subquery with VALUES
SELECT a, b FROM doubles UNION ALL VALUES (3, 6);
ERROR 42000: The storage engine for the table doesn't support subquery with VALUES
SELECT a, b FROM doubles UNION DISTINCT VALUES (3, 6);
ERROR 42000: The storage engine for the table doesn't support subquery with VALUES
DROP TABLE doubles;
DROP DATABASE mcol5703;

View File

@ -0,0 +1,26 @@
--source ../include/have_columnstore.inc
--disable_warnings
DROP DATABASE IF EXISTS mcol5703;
--enable_warnings
CREATE DATABASE mcol5703;
USE mcol5703;
CREATE TABLE `doubles` (
`a` int(11),
`b` int(11)
) ENGINE=Columnstore DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
INSERT INTO doubles VALUES (1, 2), (2, 4);
--ERROR 1178
SELECT a, b FROM doubles UNION VALUES (3, 6);
--ERROR 1178
SELECT a, b FROM doubles UNION ALL VALUES (3, 6);
--ERROR 1178
SELECT a, b FROM doubles UNION DISTINCT VALUES (3, 6);
DROP TABLE doubles;
DROP DATABASE mcol5703;