Download priv/data_migrations/NumericIDs/sql/list-partitions.sql.eex from Leon4gr45/analytics: direct link, hf CLI and curl.
- Browser
- Download file 225 Bytes
-
https://huggingface.co/spaces/Leon4gr45/analytics/resolve/main/priv/data_migrations/NumericIDs/sql/list-partitions.sql.eex
- Command line
-
hf download hf://spaces/Leon4gr45/analytics/priv/data_migrations/NumericIDs/sql/list-partitions.sql.eex
-
curl -L -o list-partitions.sql.eex https://huggingface.co/spaces/Leon4gr45/analytics/resolve/main/priv/data_migrations/NumericIDs/sql/list-partitions.sql.eex
225 Bytes
| 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 | |