ClickHouse/tests/queries/0_stateless/02113_base64encode_trailing_bytes.sql
Alexey Milovidov c148718e73 Fix fast test
2021-12-16 07:47:50 +03:00

21 lines
654 B
SQL

-- Tags: no-fasttest
SET log_queries=1;
DROP TABLE IF EXISTS tabl_1;
DROP TABLE IF EXISTS tabl_2;
CREATE TABLE tabl_1 (key String) ENGINE MergeTree ORDER BY key;
CREATE TABLE tabl_2 (key String) ENGINE MergeTree ORDER BY key;
SELECT * FROM tabl_1 SETTINGS log_comment = 'ad15a651';
SELECT * FROM tabl_2 SETTINGS log_comment = 'ad15a651';
SYSTEM FLUSH LOGS;
SELECT base64Decode(base64Encode(normalizeQuery(query)))
FROM system.query_log
WHERE type = 'QueryFinish' AND log_comment = 'ad15a651' AND current_database = currentDatabase()
GROUP BY normalizeQuery(query)
ORDER BY normalizeQuery(query);
DROP TABLE tabl_1;
DROP TABLE tabl_2;