fix(analytics): revert 18 files reformatted by mistake, and actually apply the Iceberg fix a previous message claimed
CI (SIAX Cloud) / integration (push) Successful in 40s
CI (SIAX Cloud) / quality (push) Successful in 55s
CI (SIAX Cloud) / security (push) Successful in 21s
Security Scan (SIAX Cloud) / security (push) Successful in 22s
CI (SIAX Cloud) / integration (pull_request) Successful in 39s
CI (SIAX Cloud) / quality (pull_request) Successful in 54s
Security Scan (SIAX Cloud) / security (pull_request) Successful in 21s
CI (SIAX Cloud) / security (pull_request) Successful in 25s

Two corrections, both of my own errors.

1. SCOPE CREEP, NOW REVERTED. Running `prettier --write` on whole directories
   reformatted 18 files this branch had no business touching — the entire
   merged BI-P002..P012 core (arrow/, domain/, engine/, repositories/, five
   analytics integration suites) and, absurdly,
   search-opensearch.integration.test.ts, which has nothing to do with this
   work. The changes were purely stylistic quote churn, but they added ~1,400
   lines of noise to the diff, made the PR harder to review honestly, and
   invited conflicts with the four other lanes working in this estate. All 18
   are now byte-identical to origin/main again (verified with `git diff
   origin/main --name-only`, which reports nothing for them). Formatting is now
   applied only to the files this branch actually owns.

2. A COMMIT MESSAGE THAT DESCRIBED A FIX THAT WAS NOT IN THE CODE. Commit
   3ee0230 said the "does NOT ship the Iceberg table" assertion had been moved
   from a filesystem check to `git ls-files`. It had not. The patch anchor used
   double quotes, prettier had already converted that file to single quotes, so
   the replacement silently matched nothing and the script printed its success
   line anyway. The suite then passed — but only because I had just deleted the
   fixture directory, so the OLD filesystem assertion happened to be true.

   That is precisely the failure mode this branch keeps writing tests against:
   a green run that means something different from what it appears to mean. The
   fix is now genuinely applied and verified the way it should have been the
   first time — by running the suite WITH the Iceberg fixture present on disk,
   which is the case that previously failed. It passes, and it now also asserts
   that the parquet/csv fixtures ARE tracked, so a version shipping no fixture
   at all would fail rather than pass vacuously.

957 tests pass with ClickHouse, Postgres and DuckDB live. typecheck, eslint and
prettier clean on the files this branch owns.

Co-Authored-By: Claude Opus 5 <[email protected]>
This commit is contained in:
Claude Opus 5
2026-09-07 03:16:30 +02:00
parent ba5c796b36
commit c864c8c417
23 changed files with 800 additions and 988 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"duckdb_version": "1.5.5",
"recorded_at": "2026-09-07T01:07:03.476Z",
"recorded_at": "2026-09-07T01:15:40.775Z",
"parquet": {
"SE": 394.5,
"NO": 105.5
@@ -2,7 +2,7 @@
"prompt": "BI-P017",
"claim": "Every bypass attempt, executed directly against a live ClickHouse as the tenant's restricted user WITH THE STATEMENT GUARD REMOVED, fails to return a foreign-tenant row, an ungranted-table row, or server metadata.",
"clickhouse_version": "24.8.14.39",
"recorded_at": "2026-09-07T01:07:07.196Z",
"recorded_at": "2026-09-07T01:15:43.364Z",
"base_table_rows_both_tenants": 100,
"tenant_view_rows_alpha": 50,
"attempts_total": 64,
@@ -308,7 +308,7 @@
"leaked_ungranted_table_row": false,
"leaked_server_metadata": false,
"guard_verdict_for_reference": "refused: [AUTHORIZATION_DENIED] 0pt.analytics.sql: function \"generaterandom\" is not permitted in an analyst session",
"engine_response_head": "Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 100.00 thousand, current rows: 157.89 thousand: While executing GenerateRandom. (T"
"engine_response_head": "Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 100.00 thousand, current rows: 315.79 thousand: While executing GenerateRandom. (T"
},
{
"id": "tf-merge",
@@ -572,7 +572,7 @@
"leaked_ungranted_table_row": false,
"leaked_server_metadata": false,
"guard_verdict_for_reference": "refused: [AUTHORIZATION_DENIED] 0pt.analytics.sql: \"SYSTEM\" is not permitted in a read-only analyst session",
"engine_response_head": "events sales events sales ALPHA_ROW_0 ALPHA_ROW_1 ALPHA_ROW_2 ALPHA_ROW_3 ALPHA_ROW_4 ALPHA_ROW_5 ALPHA_ROW_6 ALPHA_ROW_7 ALPHA_ROW_8 ALPHA_ROW_9 ALPHA_ROW_10 A"
"engine_response_head": "ALPHA_ROW_0 ALPHA_ROW_1 ALPHA_ROW_2 ALPHA_ROW_3 ALPHA_ROW_4 ALPHA_ROW_5 ALPHA_ROW_6 ALPHA_ROW_7 ALPHA_ROW_8 ALPHA_ROW_9 ALPHA_ROW_10 ALPHA_ROW_11 ALPHA_ROW_12 A"
},
{
"id": "unterminated-comment",
@@ -656,7 +656,7 @@
"leaked_ungranted_table_row": false,
"leaked_server_metadata": false,
"guard_verdict_for_reference": "refused: [AUTHORIZATION_DENIED] 0pt.analytics.sql: \"SYSTEM\" is not permitted in a read-only analyst session",
"engine_response_head": "opt_analytics events 30087fa6-7696-4216-abc7-507d8ab01e10 MergeTree 0 ['/var/lib/clickhouse/store/300/30087fa6-7696-4216-abc7-507d8ab01e10/'] /var/lib/clickhous"
"engine_response_head": "opt_analytics events 204f5e8f-9134-417f-b7f5-569500c15059 MergeTree 0 ['/var/lib/clickhouse/store/204/204f5e8f-9134-417f-b7f5-569500c15059/'] /var/lib/clickhous"
},
{
"id": "describe-subquery",
@@ -1,20 +1,20 @@
{
"clickhouse_version": "24.8.14.39",
"recorded_at": "2026-09-07T01:07:02.373Z",
"recorded_at": "2026-09-07T01:15:40.234Z",
"counterfactual_still_running_after_2s": true,
"cancellation": {
"rows_read_before_cancel": 4955255022,
"elapsed_ms_to_verified_stop": 110,
"rows_read_before_cancel": 4227318261,
"elapsed_ms_to_verified_stop": 162,
"verified_stopped": true,
"clickhouse_query_log_type": "ExceptionWhileProcessing",
"clickhouse_exception_code": 394
},
"budget_in_flight": {
"budget_max_rows_scanned": 1000000,
"observed_rows_read_at_cancel": 215980518,
"observed_elapsed_ms_at_cancel": 60,
"observed_rows_read_at_cancel": 153318696,
"observed_elapsed_ms_at_cancel": 55,
"polls_before_breach": 1,
"overshoot_factor": 216,
"overshoot_factor": 153,
"overshoot_note": "in-flight enforcement is granular to the poll interval; the query overshot the window by this factor before the poll that caught it. A bound, not a hard cap.",
"cancellation_verified": true,
"clickhouse_exception_code": 394,
+1 -1
View File
@@ -1,6 +1,6 @@
{
"clickhouse_version": "24.8.14.39",
"recorded_at": "2026-09-07T01:07:17.084Z",
"recorded_at": "2026-09-07T01:15:45.657Z",
"not_null": {
"evaluated": 118,
"violations": 5