You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
analytics/priv/data_migrations/PopulateEventSessionColumns/sql/list-partitions.sql.eex

8 lines
251 B
Plaintext

SELECT arraySort(groupUniqArray(partition)), arraySort(groupArray(name))
FROM system.parts
WHERE active
AND database = currentDatabase()
AND table = 'events_v2'
AND partition >= '<%= @min_partition %>'
AND partition <= '<%= @max_partition %>'