Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `telemetry_logs` ADD INDEX `idx_telemetry_logs_http_route` ((http_route)) TYPE bloom_filter(0.01) GRANULARITY 1;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `telemetry_logs` DROP INDEX `idx_telemetry_logs_http_route`;
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
ALTER TABLE `telemetry_logs` ADD INDEX `idx_telemetry_logs_http_status` ((http_response_status_code)) TYPE set(100) GRANULARITY 4;
ALTER TABLE `telemetry_logs` ADD INDEX `idx_telemetry_logs_http_route` ((http_route)) TYPE bloom_filter(0.01) GRANULARITY 1;
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
ALTER TABLE `telemetry_logs` DROP INDEX `idx_telemetry_logs_http_route`;
ALTER TABLE `telemetry_logs` DROP INDEX `idx_telemetry_logs_http_status`;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `telemetry_logs` ADD COLUMN `http_request_method` LowCardinality(Nullable(String)) COMMENT 'HTTP method (GET, POST, etc.) - null for non-HTTP logs.';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `telemetry_logs` DROP COLUMN `http_request_method`;

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `telemetry_logs` ADD COLUMN `http_response_status_code` Nullable(Int32) COMMENT 'HTTP status code - null for non-HTTP logs.';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `telemetry_logs` DROP COLUMN `http_response_status_code`;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `telemetry_logs` ADD COLUMN `http_route` Nullable(String) COMMENT 'HTTP route pattern (/api/v1/users) - null for non-HTTP logs.';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `telemetry_logs` DROP COLUMN `http_route`;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `telemetry_logs` ADD COLUMN `http_server_url` Nullable(String) COMMENT 'HTTP server URL - null for non-HTTP logs.' CODEC(ZSTD(1));
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `telemetry_logs` DROP COLUMN `http_server_url`;

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `telemetry_logs` DROP COLUMN `observed_timestamp`;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `telemetry_logs` ADD COLUMN `observed_timestamp` DateTime64(9) DEFAULT fromUnixTimestamp64Nano(observed_time_unix_nano) COMMENT 'Human-readable timestamp derived from observed_time_unix_nano.';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `telemetry_logs` DROP COLUMN `gram_chat_id`;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `telemetry_logs` ADD COLUMN `gram_chat_id` Nullable(String) COMMENT 'The Chat ID associated with the log (if generated by chat).';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `telemetry_logs` DROP INDEX `idx_telemetry_logs_chat_id`;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `telemetry_logs` ADD INDEX `idx_telemetry_logs_chat_id` ((gram_chat_id)) TYPE bloom_filter(0.01) GRANULARITY 1;
14 changes: 10 additions & 4 deletions server/clickhouse/local/golang_migrate/atlas.sum
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
h1:LWQjNXTcZdYBt7OLGfYkh2nOcy6RwCmvLGwlmtJF2pQ=
h1:ACpWtLBg0jfhAxqXZe/EdSYm8ZoT1yyDm5nxTDIKNpo=
20251127155815_initial_golang_migrate.up.sql h1:fkATa14aucJEoldFi1VgW7TRT8gyC6NGe1Hq/OzXVuI=
20251208142630_add-tool-logs-table.up.sql h1:cGJCiWBvLPFwOlpx0jYYLgdPZD21+gKSF/x4mVksBcI=
20251209104438_add-id-col-to-tool-logs-table.up.sql h1:+Ubsl1ZKfeCZL9dBhohUnkBksKZj6nwdZSXm7WwowaE=
20251217163326_add-telemetry-logs-table.up.sql h1:9nsauxhOm4lo/DddEKbpJy+ZeVdbT1FQYUi6rw82V1A=
20260129234446_drop-telemetry-http-indices.up.sql h1:L18/S7TPIDosAB8a+0zNdvNbGxy+cGhfCJpzrxTFC6E=
20260129234510_drop-telemetry-http-cols.up.sql h1:c/0WDD+1s4WC2eyN2YKrRPnPxoU+tX+SPPxG+XnJ22k=
20260130010009_add-chat-id-and-timestamp-cols.up.sql h1:UUgfXMrzmv/+tIfZB9BMCGLZifIE9Hp4qXG8js+6oLM=
20260129234446_drop-http-route-index.up.sql h1:R8SLTZfZTQq5rTNh4UbhhWkldbYd/2gSClQFw12KNmg=
20260129234447_drop-http-status-index.up.sql h1:BQYK1jLKWvEUxUtBTrp6/g1k9DALX4U0XOfrkHz1/Rk=
20260129234510_drop-http-request-method-col.up.sql h1:SOD+ajfAha5+oqpdREzGkT4yufhiWLNB0qeeRJxkv9Y=
20260129234511_drop-http-response-status-code-col.up.sql h1:3BIqbH9lDNoN7c16a41I7RCypcQFrQcbNvGNmnvv1OY=
20260129234512_drop-http-route-col.up.sql h1:xWUkOgXQ0bAoIVqbEMjoCd+EaG0JFSGbXpCm10OuqTg=
20260129234513_drop-http-server-url-col.up.sql h1:8oC3hfT/pCNuI2bn9S953G1BkWoyLWyL2d0x9aua/Zk=
20260130010009_add-observed-timestamp-col.up.sql h1:BCy9z/s1l50ITqguAbGGJ921JSZGUZBJPgHsWhCZpzI=
20260130010010_add-chat-id-col.up.sql h1:zdp3GwKaNsaCPpW2jTfbYV5w4tu13j09cOAy2DIFr2U=
20260130010011_add-chat-id-index.up.sql h1:O/I1tFR5/arZ0XxQV5Hz536I7Rkr8ssx7fo6UC990K0=
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did these get renamed? I don't believe this should go in because it's completely unrelated with the clickhouse issue.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was a result of running clickhouse rebase i believe but might be wrong - the original issue i ran into was out of order migrations

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem is that these migrations are not clickhouse migrations - they're PG migrations, which was what stood out to me 🤔

File renamed without changes.
6 changes: 3 additions & 3 deletions server/migrations/atlas.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
h1:29h296AuqSMkZebCgykMH06dLd3n5Pf3vZqF1+vBx5A=
h1:YUzvw6bRrIFgfoCvVRvpIn6UhyIj76q54pNyuwZghP4=
20250502122425_initial-tables.sql h1:Hu3O60/bB4fjZpUay8FzyOjw6vngp087zU+U/wVKn7k=
20250502130852_initial-indexes.sql h1:oYbnwi9y9PPTqu7uVbSPSALhCY8XF3rv03nDfG4b7mo=
20250502154250_relax-http-security-fields.sql h1:0+OYIDq7IHmx7CP5BChVwfpF2rOSrRDxnqawXio2EVo=
Expand Down Expand Up @@ -92,5 +92,5 @@ h1:29h296AuqSMkZebCgykMH06dLd3n5Pf3vZqF1+vBx5A=
20260122192347_chat-content-raw-columns.sql h1:Y1XDsAX1O+f1hsJWFf3IG6pC33h9mtqWidy7RAm/4NI=
20260127002212_mcp_env_vars.sql h1:SyyU7ZXDITVxMGsSPCAjuBBNXNgxfm+3DjmV5YDV/FQ=
20260127183030_add_header_definitions_for_external_mcp.sql h1:zhgPD7ecRzM2VFj67jchsx0TiBLpLD4QoIvgT+7TKSw=
20260129164323_install_redirect.sql h1:QK9StZ1pz4N+oRPcNYFeOx8AVt2tQBRJC+NRKJSeWOk=
20260129194537_api-key-last-accessed.sql h1:2ggrS/lKJnBS6HSll9akkQg9SZSYy03W839YxU46+mU=
20260130135207_install_redirect.sql h1:veBJMbzhd1Cwt16O7DhBJzRAyhhOAMKyAVz96ofoNcQ=
20260130135208_api-key-last-accessed.sql h1:vi8TL7pUBVG8oOY4vs9XMJ4DrE0Waegqbg/UEuJ+0t4=
Loading