Skip to content

docs: update ClickHouse derived-table rebuild notes for EXCHANGE TABLES - #12529

Open
ArnabOPP wants to merge 1 commit into
cBioPortal:masterfrom
ArnabOPP:docs/clickhouse-derived-tables-exchange-12453
Open

ArnabOPP wants to merge 1 commit into
cBioPortal:masterfrom
ArnabOPP:docs/clickhouse-derived-tables-exchange-12453

Conversation

@ArnabOPP

Copy link
Copy Markdown

Fix #12453

Describe changes proposed in this pull request:

  • Section 12 (Version Migration) of docs/deployment/clickhouse/README.md said populate_derived_tables.sql TRUNCATEs derived tables, so a live instance would see empty or partially rebuilt tables. The script now builds each table as <name>_temp and swaps it in with EXCHANGE TABLES, so a live backend keeps reading the previous complete tables until the swap.
  • The updated text still recommends disconnecting the web service (some preparatory steps, e.g. the sample_profile repair, write to live tables, and the rebuild is heavy) and mentions blue/green for full isolation.
  • Added a short note about the swap behaviour to the Important Notes in section 7 (the issue also mentioned section 7, but only section 12 had the stale TRUNCATE claim).

Not changed: the header comment in db-scripts/clickhouse/init/schema.sql (lines 19-25) repeats the same claim; left out to keep this PR docs-only.

Checks

  • The commit log is comprehensible.
  • No tests: documentation-only change.
  • Not adding logic based on clinical attributes.
  • Label: needs a docs label from release-drafter.yml (I cannot set labels as a first-time contributor).

🤖 Generated with Claude Code

populate_derived_tables.sql builds each derived table as a _temp copy and
swaps it in with EXCHANGE TABLES, rather than TRUNCATEing live tables.
Update section 12 (and add a note in section 7) so operators are not told a
live instance will see empty or partially rebuilt tables. Keep the advice to
disconnect the web service and mention blue/green for full isolation.

Fixes cBioPortal#12453

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 23, 2026 20:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@ArnabOPP

Copy link
Copy Markdown
Author

Heads-up on CI: build_web_image failed at the "Save cbioportal image as tar" step with Error response from daemon: reference does not exist. The preceding "Build and Push cBioPortal docker image" step succeeded, as did build_web_and_data_image and both push jobs, and this PR only changes a Markdown file under docs/, so it looks like a CI / fork-PR issue rather than something caused by the change. approve_clickhouse_tests is also still on hold.

Could a maintainer re-run the failed job and approve the held one, and take a look at the docs change when you have a chance? Thanks!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: ClickHouse README says derived-table rebuild TRUNCATEs; script now builds _temp tables and swaps with EXCHANGE TABLES

2 participants