Download priv/data_migrations/LocationsSync/sql/update-location-data-dictionary.sql.eex from Leon4gr45/analytics: direct link, hf CLI and curl.
- Browser
- Download file 318 Bytes
-
https://huggingface.co/spaces/Leon4gr45/analytics/resolve/main/priv/data_migrations/LocationsSync/sql/update-location-data-dictionary.sql.eex
- Command line
-
hf download hf://spaces/Leon4gr45/analytics/priv/data_migrations/LocationsSync/sql/update-location-data-dictionary.sql.eex
-
curl -L -o update-location-data-dictionary.sql.eex https://huggingface.co/spaces/Leon4gr45/analytics/resolve/main/priv/data_migrations/LocationsSync/sql/update-location-data-dictionary.sql.eex
318 Bytes
| CREATE OR REPLACE DICTIONARY location_data_dict | |
| <%= if @cluster? do %>ON CLUSTER '{cluster}'<% end %> | |
| ( | |
| `type` String, | |
| `id` String, | |
| `name` String | |
| ) | |
| PRIMARY KEY type, id | |
| SOURCE(CLICKHOUSE(TABLE location_data <%= @dictionary_connection_params %>)) | |
| LIFETIME(0) | |
| LAYOUT(complex_key_cache(size_in_cells 500000)) | |