Skip to content

Commit

Permalink
actually use keys for keys index
Browse files Browse the repository at this point in the history
Co-authored-by: Daesgar <[email protected]>
  • Loading branch information
tkaemming and Daesgar authored Aug 2, 2024
1 parent 03509f6 commit 2e3032c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posthog/clickhouse/property_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def get_alter_table_statements(self, name: str) -> Iterable[str]:
definition = self.__groups[name]
return [
f"ALTER TABLE {self.__table} ON CLUSTER {self.__cluster} ADD COLUMN {column_name} Map(String, String) MATERIALIZED {self.__get_map_expression(definition)} CODEC({definition.codec})",
f"ALTER TABLE {self.__table} ON CLUSTER {self.__cluster} ADD INDEX {column_name}_keys_bf mapValues({column_name}) TYPE bloom_filter",
f"ALTER TABLE {self.__table} ON CLUSTER {self.__cluster} ADD INDEX {column_name}_keys_bf mapKeys({column_name}) TYPE bloom_filter",
f"ALTER TABLE {self.__table} ON CLUSTER {self.__cluster} ADD INDEX {column_name}_values_bf mapValues({column_name}) TYPE bloom_filter",
]

Expand Down

0 comments on commit 2e3032c

Please sign in to comment.