Download priv/data_migrations/LocationsSync/sql/create-location-data-table.sql.eex from Leon4gr45/analytics: direct link, hf CLI and curl.
- Browser
- Download file 421 Bytes
-
https://huggingface.co/spaces/Leon4gr45/analytics/resolve/main/priv/data_migrations/LocationsSync/sql/create-location-data-table.sql.eex
- Command line
-
hf download hf://spaces/Leon4gr45/analytics/priv/data_migrations/LocationsSync/sql/create-location-data-table.sql.eex
-
curl -L -o create-location-data-table.sql.eex https://huggingface.co/spaces/Leon4gr45/analytics/resolve/main/priv/data_migrations/LocationsSync/sql/create-location-data-table.sql.eex
421 Bytes
| CREATE TABLE IF NOT EXISTS location_data <%= if @cluster? do %>ON CLUSTER '{cluster}'<% end %> | |
| ( | |
| `type` LowCardinality(String), | |
| `id` String, | |
| `name` String | |
| ) | |
| <%= if @cluster? do %> | |
| ENGINE = ReplicatedMergeTree('/clickhouse/{cluster}/tables/{shard}/plausible_prod/location_data', '{replica}') | |
| <% else %> | |
| ENGINE = MergeTree() | |
| <% end %> | |
| ORDER BY (type, id) | |
| SETTINGS index_granularity = 128 <%= @table_settings %> | |