Skip to content

add getLastWrittenObjectPath() for ObjectStorage - #100315

Merged
bharatnc merged 3 commits into
masterfrom
ncb/object-storage-last-partition-key
Mar 23, 2026
Merged

bharatnc merged 3 commits into
masterfrom
ncb/object-storage-last-partition-key

Conversation

@bharatnc

@bharatnc bharatnc commented Mar 22, 2026 •

Copy link
Copy Markdown
Contributor

Changelog category (leave one):

  • Improvement

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

Add getLastWrittenObjectPath() for ObjectStorage.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.4.1.145

@bharatnc
bharatnc requested a review from mstetsyuk March 22, 2026 02:03
@clickhouse-gh

clickhouse-gh Bot commented Mar 22, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [9f40b55]

Summary: ❌

job_name test_name status info comment
Stress test (arm_asan_ubsan, s3) failure
Cannot start clickhouse-server FAIL cidb IGNORED
Parse failure error failure cidb IGNORED
Check failed failure cidb IGNORED
AST fuzzer (amd_debug) failure
Logical error: Bad cast from type A to B (STID: 3520-43e0) FAIL cidb, issue ISSUE CREATED

AI Review

Summary

This PR updates PartitionedStorageObjectStorageSink to expose the resolved object key written by createSinkForPartition via getLastWrittenObjectPath, and stores it in last_written_object_path. I did not find new correctness, safety, performance, or compatibility issues in the final diff. High-level verdict: this change is small, coherent, and safe to merge.

ClickHouse Rules

Item Status Notes
Deletion logging ➖
Serialization versioning ➖
Core-area scrutiny ✅
No test removal ✅
Experimental gate ➖
No magic constants ✅
Backward compatibility ✅
SettingsChangesHistory.cpp ➖
PR metadata quality ⚠️ Changelog entry is too implementation-focused (Add getLastWrittenObjectPath() for ObjectStorage.) and not clearly user-facing. Consider Not for changelog if this is internal-only, or rewrite entry with explicit user impact.
Safe rollout ✅
Compilation time ✅

Final Verdict

  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-improvement Pull request with some product improvements label Mar 22, 2026
@bharatnc bharatnc changed the title add getLastWrittenPartitionKey() for ObjectStorage add getLastWrittenObjectPath() for ObjectStorage Mar 23, 2026
@bharatnc
bharatnc marked this pull request as ready for review March 23, 2026 05:40
@clickhouse-gh

clickhouse-gh Bot commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 83.90% 83.90% +0.00%
Functions 24.80% 24.70% -0.10%
Branches 76.50% 76.50% +0.00%

PR changed lines: PR changed-lines coverage: 85.71% (6/7, 0 noise lines excluded)
Diff coverage report
Uncovered code

@bharatnc
bharatnc added this pull request to the merge queue Mar 23, 2026
Merged via the queue into master with commit ded1858 Mar 23, 2026
146 of 148 checks passed
@bharatnc
bharatnc deleted the ncb/object-storage-last-partition-key branch March 23, 2026 12:48
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Mar 23, 2026
alexey-milovidov added a commit that referenced this pull request Apr 30, 2026
- Replace TODO authoring notes with user-facing summaries (or drop
  entries that are not user-visible).
- Drop changelog item for `#101634` since the PR only adds a test.
- Drop changelog item for `#100315` since the PR only adds an
  internal `getLastWrittenObjectPath` method on `ObjectStorage`.
- Rewrite the duplicated "This PR addresses several issues..." entry
  for `#99163` / `#100420` as a single coherent sentence.
- Fix the `chdig` link target: the text said `v26.4.3` but the URL
  pointed to the `v26.4.1` tag. Both versions exist; the PR title is
  "Bump chdig to v26.4.3", so align the URL with the version.

PR: #103729
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-improvement Pull request with some product improvements 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.

4 participants