1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-27 21:01:50 +03:00

Fix deprication warnings in the MTR with select * from .. into

This commit is contained in:
Timofey Turenko
2025-04-03 01:20:06 +03:00
committed by Leonid Fedorov
parent 41beae9a25
commit 8c8e3ab842
12 changed files with 24 additions and 49 deletions

View File

@ -1,11 +1,6 @@
USE tpch1;
select count(*) from nation into outfile '/tmp/natcount.tbl';
Warnings:
Warning 1287 '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
select count(*) into outfile '/tmp/natcount.tbl' from nation;
select count(*) from nation;
count(*)
25
select count(*) from nation into outfile 'nation.out';
Warnings:
Warning 1287 '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
select count(*) into outfile 'nation.out' from nation;

View File

@ -1,24 +1,18 @@
USE tpch1;
select n_nationkey, n_name into outfile '/tmp/bug3935_outfile.txt'
FIELDS TERMINATED BY '|' LINES TERMINATED BY '/n' from nation;
select n_nationkey, n_name from nation into outfile '/tmp/bug3935_outfile.txt'
FIELDS TERMINATED BY '|' LINES TERMINATED BY '/n';
Warnings:
Warning 1287 '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
select n_nationkey, n_name into outfile '/tmp/bug3935_outfile.txt'
FIELDS TERMINATED BY '|' LINES TERMINATED BY '/n' from nation;
select n_nationkey, n_name into outfile '/tmp/bug3935_outfile.txt'
FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '/n'
from nation;
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';
Warnings:
Warning 1287 '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
ORDER BY n_name DESC) INTO OUTFILE
'/tmp/bug3935_outfile.txt' FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' FROM nation;
SELECT 'ID', 'Name' UNION (SELECT n_nationkey, n_name
FROM nation ORDER BY n_name DESC) INTO OUTFILE
ORDER BY n_name DESC) INTO OUTFILE
'/tmp/bug3935_outfile.txt' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n';
Warnings:
Warning 1287 '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
LINES TERMINATED BY '\n' FROM nation;
SELECT *
INTO OUTFILE '/tmp/bug3935_outfile.txt'
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"'

View File

@ -18,9 +18,7 @@ l_shipinstruct CHAR (25),
l_shipmode CHAR (10),
l_comment VARCHAR (44)
) ENGINE=columnstore;
SELECT * FROM lineitem LIMIT 1000000 INTO OUTFILE '/tmp/mcol4000.txt' FIELDS TERMINATED BY ',' ENCLOSED BY '"';
Warnings:
Warning 1287 '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
SELECT * INTO OUTFILE '/tmp/mcol4000.txt' FIELDS TERMINATED BY ',' ENCLOSED BY '"' FROM lineitem LIMIT 1000000;
set columnstore_use_import_for_batchinsert=ALWAYS;
START TRANSACTION;
INSERT INTO mcol4000(l_comment) VALUES ('mcol4000');

View File

@ -18,9 +18,7 @@ l_shipinstruct CHAR (25),
l_shipmode CHAR (10),
l_comment VARCHAR (44)
) ENGINE=columnstore;
SELECT * FROM lineitem LIMIT 100 INTO OUTFILE '/tmp/mcol4002.txt' FIELDS TERMINATED BY ',' ENCLOSED BY '"';
Warnings:
Warning 1287 '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
SELECT * INTO OUTFILE '/tmp/mcol4002.txt' FIELDS TERMINATED BY ',' ENCLOSED BY '"' FROM lineitem LIMIT 100;
START TRANSACTION;
INSERT INTO mcol4002(l_comment) VALUES ('mcol4002');
SELECT COUNT(*) FROM mcol4002;