0001_distribute_tables.sql 1.8 KB

1234567891011121314151617181920212223
  1. rename table otel.otel_logs to otel.otel_logs_local;
  2. create table otel.otel_logs as otel.otel_logs_local ENGINE = Distributed(default, otel, otel_logs_local, rand());
  3. rename table otel.otel_metrics_exponential_histogram to otel.otel_metrics_exponential_histogram_local;
  4. create table otel.otel_metrics_exponential_histogram as otel.otel_metrics_exponential_histogram_local ENGINE = Distributed(default, otel, otel_metrics_exponential_histogram_local, rand());
  5. rename table otel.otel_metrics_gauge to otel.otel_metrics_gauge_local;
  6. create table otel.otel_metrics_gauge as otel.otel_metrics_gauge_local ENGINE = Distributed(default, otel, otel_metrics_gauge_local, rand());
  7. rename table otel.otel_metrics_histogram to otel.otel_metrics_histogram_local;
  8. create table otel.otel_metrics_histogram as otel.otel_metrics_histogram_local ENGINE = Distributed(default, otel, otel_metrics_histogram_local, rand());
  9. rename table otel.otel_metrics_sum to otel.otel_metrics_sum_local;
  10. create table otel.otel_metrics_sum as otel.otel_metrics_sum_local ENGINE = Distributed(default, otel, otel_metrics_sum_local, rand());
  11. rename table otel.otel_metrics_summary to otel.otel_metrics_summary_local;
  12. create table otel.otel_metrics_summary as otel.otel_metrics_summary_local ENGINE = Distributed(default, otel, otel_metrics_summary_local, rand());
  13. rename table otel.otel_traces to otel.otel_traces_local;
  14. create table otel.otel_traces as otel.otel_traces_local ENGINE = Distributed(default, otel, otel_traces_local, rand());
  15. rename table otel.otel_traces_flat_spring_boot to otel.otel_traces_flat_spring_boot_local;
  16. create table otel.otel_traces_flat_spring_boot as otel.otel_traces_flat_spring_boot_local ENGINE = Distributed(default, otel, otel.otel_traces_flat_spring_boot_local, rand());