ClickHouse/tests/queries/0_stateless/02113_base64encode_trailing_bytes.sql

21 lines
654 B
MySQL
Raw Normal View History

2021-12-16 04:46:23 +00:00
-- Tags: no-fasttest
SET log_queries=1;
2021-12-16 04:46:23 +00:00
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
2021-12-16 04:47:50 +00:00
WHERE type = 'QueryFinish' AND log_comment = 'ad15a651' AND current_database = currentDatabase()
GROUP BY normalizeQuery(query)
ORDER BY normalizeQuery(query);
2021-12-16 04:46:23 +00:00
DROP TABLE tabl_1;
DROP TABLE tabl_2;