Skip to content

Clarify docs for materialized_views_ignore_errors - #106044

Merged
CheSema merged 4 commits into
masterfrom
sema/docs-mv-ignore-errors
May 28, 2026
Merged

CheSema merged 4 commits into
masterfrom
sema/docs-mv-ignore-errors

Conversation

@CheSema

@CheSema CheSema commented May 28, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Documentation (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Clarify the description of the materialized_views_ignore_errors setting: it controls only error reporting from dependent materialized views and does not provide any atomicity guarantee against the source table.

Follow-up to a doc discussion in #105943 (comment)

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.6.1.227

The previous one-line description ("Allows to ignore errors for MATERIALIZED
VIEW, and deliver original block to the table regardless of MVs") was read
as implying that with the setting disabled the original block is not
delivered to the source table when a dependent view throws. That is not
what the setting does: it controls only how MV pipeline errors are reported
and provides no atomicity guarantee against the source table either way.

Discussed in #105943 (comment)
@clickhouse-gh

clickhouse-gh Bot commented May 28, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [7d6e135]

Summary: ❌

job_name test_name status info comment
Stress test (amd_tsan) FAIL
Assertion 'px != 0' failed (STID: 3678-370a) FAIL cidb

AI Review

Summary

This PR clarifies the documentation for materialized_views_ignore_errors in both the structured setting description and the CREATE VIEW materialized-view section. The current wording matches the existing partial-delivery behavior shown by 03403_mv_errors: ignored view exceptions make the INSERT report success, the failing view chain can be partial, sibling view chains continue, and source-table atomicity is not guaranteed by the setting.

Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-documentation Documentation PRs for the specific code PR label May 28, 2026
Comment thread src/Core/Settings.cpp Resolved
Comment thread src/Core/Settings.cpp Resolved
Replace the paragraph about materialized_views_ignore_errors with wording
that distinguishes the source table from the destination table, drops the
incorrect "all blocks will be written to the destination" claim, and points
users at insert deduplication for exactly-once delivery on retry. Also
fixes a "truoke" typo.

Follow-up to #106044
CheSema added 2 commits May 28, 2026 16:16
…ews_ignore_errors

The previous wording said blocks before and after the throwing block are
written to the failing view's destination. That is incorrect — once a view's
processor enters the exception stage, `ExceptionKeepingTransform` cancels
the input and drops every subsequent chunk, so only blocks processed before
the exception reach the destination. Also clarify that sibling views and
their downstream chains are unaffected, and move the retry+deduplication
hint to the default-failure case where a client-side retry is actually
triggered.

Verified against tests/queries/0_stateless/03403_mv_errors.reference.
Discussed in #106044 (comment)
Make the retry+deduplication advice apply only to the default (failing)
mode where the client actually has a failure signal. Mention that the
enabled mode trades view completeness for forward progress and point at
the CREATE VIEW docs for the full partial-delivery semantics.

Follow-up to #106044 (comment)
@clickhouse-gh

clickhouse-gh Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 84.40% 84.40% +0.00%
Functions 91.40% 91.40% +0.00%
Branches 77.00% 77.00% +0.00%

Changed lines: Changed C/C++ lines covered by tests: 8/8 (100.00%) | Lost baseline coverage: none · Uncovered code

Full report · Diff report

@CheSema
CheSema added this pull request to the merge queue May 28, 2026
Merged via the queue into master with commit 3ef543b May 28, 2026
164 of 167 checks passed
@CheSema
CheSema deleted the sema/docs-mv-ignore-errors branch May 28, 2026 22:08
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-documentation Documentation PRs for the specific code PR pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants