ClickHouse/tests/queries/0_stateless/00730_unicode_terminal_format.sql

29 lines
2.1 KiB
SQL

DROP TABLE IF EXISTS unicode;
CREATE TABLE unicode(c1 String, c2 String) ENGINE = Memory;
INSERT INTO unicode VALUES ('Здравствуйте', 'Этот код можно отредактировать и запустить!');
INSERT INTO unicode VALUES ('你好', '这段代码是可以编辑并且能够运行的!');
INSERT INTO unicode VALUES ('Hola', '¡Este código es editable y ejecutable!');
INSERT INTO unicode VALUES ('Bonjour', 'Ce code est modifiable et exécutable !');
INSERT INTO unicode VALUES ('Ciao', 'Questo codice è modificabile ed eseguibile!');
INSERT INTO unicode VALUES ('こんにちは', 'このコードは編集して実行出来ます!');
INSERT INTO unicode VALUES ('안녕하세요', '여기에서 코드를 수정하고 실행할 수 있습니다!');
INSERT INTO unicode VALUES ('Cześć', 'Ten kod można edytować oraz uruchomić!');
INSERT INTO unicode VALUES ('Olá', 'Este código é editável e executável!');
INSERT INTO unicode VALUES ('Chào bạn', 'Bạn có thể edit và run code trực tiếp!');
INSERT INTO unicode VALUES ('Hallo', 'Dieser Code kann bearbeitet und ausgeführt werden!');
INSERT INTO unicode VALUES ('Hej', 'Den här koden kan redigeras och köras!');
INSERT INTO unicode VALUES ('Ahoj', 'Tento kód můžete upravit a spustit');
INSERT INTO unicode VALUES ('Tabs \t Tabs', 'Non-first \t Tabs');
INSERT INTO unicode VALUES ('Control characters \x1f\x1f\x1f\x1f with zero width', 'Invalid UTF-8 which eats pending characters \xf0, or invalid by itself \x80 with zero width');
INSERT INTO unicode VALUES ('Russian ё and ё ', 'Zero bytes \0 \0 in middle');
SELECT * FROM unicode SETTINGS max_threads = 1 FORMAT PrettyNoEscapes;
SELECT 'Tabs \t Tabs', 'Long\tTitle' FORMAT PrettyNoEscapes;
SELECT '你好', '世界' FORMAT Vertical;
SELECT 'Tabs \t Tabs', 'Non-first \t Tabs' FORMAT Vertical;
SELECT 'Control characters \x1f\x1f\x1f\x1f with zero width', 'Invalid UTF-8 which eats pending characters \xf0, and invalid by itself \x80 with zero width' FORMAT Vertical;
SELECT 'Russian ё and ё', 'Zero bytes \0 \0 in middle' FORMAT Vertical;
DROP TABLE IF EXISTS unicode;