clickhouse数据库不支持Row_number(),寻找替代函数。
SELECT company_name AS company,
DOMAIN,
city_name AS city,
state_province_code AS state,
country_code AS country,
location_revenue AS revenueRange,
location_TI_industry AS industry,
location_employeecount_range AS employeeSize,
topic,
location_duns AS duns,
rank AS intensityRank,
dnb_status_code AS locationStatus,
rank_delta AS intensityRankDelta,
company_id,
ROW_NUMBER() OVER (PARTITION BY DOMAIN) AS rowNumberFROM company_intent c
WHERE c.rank > 0
AND c.rank <= 10
AND c.signal_count > 0
AND c.topic IN ('Cloud Computing')
AND c.country_code = 'US'
AND c.rank IN (7, 8, 9, 10)
GROUP BY c.location_duns,
company_name,
DOMAIN, …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用以下语法在现有表上添加索引。
创建表 contact_in..... ( ....... 域字符串,主题字符串,类别字符串 ...... ...... ..... ..... ) ENGINE = MergeTree按类别分区 ORDER BY(主题、域)设置 index_grainarity = 8192
I want to create an index on the topic column (granularity is 6020)
tried syntax from the documentation but unable to understand since there is no examples explaining the fields in it.
Run Code Online (Sandbox Code Playgroud)
有人可以快速帮我解决这个问题吗?