1
CREATE TABLE hits_100m_words (words Array(String), UserID UInt64) ENGINE Memory
INSERT INTO hits_100m_words SELECT splitByNonAlpha(SearchPhrase) AS words, UserID FROM hits_100m_single WHERE length(words) > 0
SELECT splitByNonAlpha(SearchPhrase) FROM hits_100m_single FORMAT Null
SELECT splitByWhitespace(SearchPhrase) FROM hits_100m_single FORMAT Null
SELECT arrayMap(x -> stem('ru', x), words) FROM hits_100m_words FORMAT Null
DROP TABLE IF EXISTS hits_100m_words
DROP TABLE IF EXISTS hits_100m_words_ws