jaegertracing / jaeger-clickhouse

Jaeger ClickHouse storage plugin implementation
Apache License 2.0
233 stars 50 forks source link

Add alter statements for altering table ttl after table creation #121

Open chhetripradeep opened 1 year ago

chhetripradeep commented 1 year ago

Signed-off-by: Pradeep Chhetri pradeepchhetri4444@gmail.com

Tested in local development environment by updating the ttl field in configuration file.

Which problem is this PR solving?

Resolves https://github.com/jaegertracing/jaeger-clickhouse/issues/120

Short description of the changes

We added alter statements for each of the three tables which gets executed if ttl is greater than 0. Since materialized views don't support altering ttl configuration, we weren't able to do it for operations table.