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/NumericIDs/sql/list-partitions.sql.eex

7 lines
225 B
Plaintext

SELECT distinct(partition)
FROM system.parts
WHERE table = 'events'
<%= if @start_from do %>AND partition >= '<%= @start_from %>'<% end %>
<%= if @stop_at do %>AND partition <= '<%= @stop_at %>'<% end %>
ORDER BY partition