diff --git a/dbms/tests/performance/string_join.xml b/dbms/tests/performance/string_join.xml new file mode 100644 index 00000000000..6c0ad83d5b4 --- /dev/null +++ b/dbms/tests/performance/string_join.xml @@ -0,0 +1,34 @@ + + loop + + + + 10 + + + + + + + + + default.hits_10m_single + + + CREATE TABLE hits_10m_words (word String, UserID UInt64) ENGINE Memory + CREATE TABLE strings (short String, long String) ENGINE Memory + + INSERT INTO hits_10m_words SELECT DISTINCT arrayJoin(splitByString(' ', SearchPhrase)) AS word, UserID FROM hits_10m_single WHERE length(word) > 0 + INSERT INTO strings SELECT toString(rand()) a, a || a || a || a || a || a || a || a || a || a || a || a FROM numbers(1000000) + + + 1 + + + SELECT 1 FROM hits_10m_words AS l ANY LEFT JOIN hits_10m_words AS r USING (word) FORMAT Null + SELECT 1 FROM strings AS l ANY LEFT JOIN strings AS r USING (short) FORMAT Null + SELECT 1 FROM strings AS l ANY LEFT JOIN strings AS r USING (long) FORMAT Null + + DROP TABLE IF EXISTS hits_10m_words + DROP TABLE IF EXISTS strings +