mirror of
https://github.com/plausible/analytics.git
synced 2024-12-25 02:24:55 +03:00
26d41ddbb9
* WIP mutation to populate event session columns * Remove duplication * report errors, allow_nondeterministic_updates * use right columns * Update existing columns instead of session_* ones * Make dialyzer happy * Fix issue with passing pre-existing params in * Logger -> IO.puts * Use IngestRepo.config for connection settings * Make dictionary options configurable * Move allow_nondeterministic_mutations to within the migration * Solve credo warning about too deep nesting * Missed logger call * Pattern matching in function head
8 lines
251 B
Elixir
8 lines
251 B
Elixir
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 %>'
|