mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-04-21 19:45:56 +03:00
* 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>
56 lines
1.8 KiB
Plaintext
56 lines
1.8 KiB
Plaintext
# -------------------------------------------------------------- #
|
|
# Test case migrated from regression test suite: bug3935.sql
|
|
#
|
|
# Author: Daniel Lee, daniel.lee@mariadb.com
|
|
# -------------------------------------------------------------- #
|
|
#
|
|
--source ../include/have_columnstore.inc
|
|
#
|
|
USE tpch1;
|
|
#
|
|
--exec rm -f /tmp/bug3935_outfile.txt
|
|
|
|
select n_nationkey, n_name into outfile '/tmp/bug3935_outfile.txt'
|
|
FIELDS TERMINATED BY '|' LINES TERMINATED BY '/n' from nation;
|
|
--exec rm -f /tmp/bug3935_outfile.txt
|
|
|
|
select n_nationkey, n_name from nation into outfile '/tmp/bug3935_outfile.txt'
|
|
FIELDS TERMINATED BY '|' LINES TERMINATED BY '/n';
|
|
--exec rm -f /tmp/bug3935_outfile.txt
|
|
|
|
select n_nationkey, n_name into outfile '/tmp/bug3935_outfile.txt'
|
|
FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '/n'
|
|
from nation;
|
|
--exec rm -f /tmp/bug3935_outfile.txt
|
|
|
|
SELECT 'ID', 'Name' UNION (SELECT n_nationkey, n_name
|
|
FROM nation ORDER BY n_name DESC) INTO OUTFILE
|
|
'/tmp/bug3935_outfile.txt' FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n';
|
|
--exec rm -f /tmp/bug3935_outfile.txt
|
|
|
|
SELECT 'ID', 'Name' UNION (SELECT n_nationkey, n_name
|
|
FROM nation ORDER BY n_name DESC) INTO OUTFILE
|
|
'/tmp/bug3935_outfile.txt' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
|
|
LINES TERMINATED BY '\n';
|
|
--exec rm -f /tmp/bug3935_outfile.txt
|
|
|
|
SELECT *
|
|
INTO OUTFILE '/tmp/bug3935_outfile.txt'
|
|
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"'
|
|
LINES TERMINATED BY '\n'
|
|
FROM (SELECT 'ID', 'Name'
|
|
UNION
|
|
SELECT n_nationkey, n_name from nation) a;
|
|
--exec rm -f /tmp/bug3935_outfile.txt
|
|
|
|
SELECT a.*
|
|
INTO OUTFILE '/tmp/bug3935_outfile.txt'
|
|
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"'
|
|
LINES TERMINATED BY '\n'
|
|
FROM (SELECT 'ID', 'Name'
|
|
UNION
|
|
SELECT n_nationkey, n_name from nation order by 2 desc) a;
|
|
--exec rm -f /tmp/bug3935_outfile.txt
|
|
#
|
|
|