Repository navigation
Conversation
|
Workflow [PR], commit [2c94be0] Summary: ✅
AI ReviewSummaryThis PR moves the Missing context / blind spots
Findings
Final VerdictStatus: Minimum required action: add/link after-change performance evidence for the |
alesapin
left a comment
There was a problem hiding this comment.
We double checks now, but okay.
|
Hi @alesapin, thanks for your review. I added level check on every call-sites and remove the inside check. The CI issue seems irrelevant, I have merged latest the master several times but it the problem persists, can you give some suggestions? |
…o fix-iceberg-eager-log-content
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered by tests: 19/74 (25.68%) | Lost baseline coverage (was covered on master, now uncovered in this PR): 64 line(s) · Uncovered code |
|
Hi @alesapin, we would also benefit from this change. Is there any update on when it will get merged? Thanks! |
|
Dear @alesapin, you haven't been active on this PR for 30 days. You will be unassigned. Will you continue working on it? If so, please feel free to reassign yourself. |
insertRowToLogTable took the content as an eagerly built String, so every call site serialized to JSON even when iceberg_metadata_log_level (default none) discarded the row. Related: ClickHouse#105823 Related: ClickHouse#104169
AvroForIcebergDeserializer::getContent(row_index)was passed as an argument toinsertRowToLogTableand serialized a manifest entry to JSON on every call, even wheniceberg_metadata_log_level(defaultnone) discarded the result. Hoist the level check above the five call sites so the payload is only built when the log will consume it.CPU profile of a query over ~300k pruned manifest entries (
max_threads=1): ~59% of CPU was JSON serialization (writeJSONString,SerializationTuple::serializeTextJSON,SerializationObjectPool::getOrCreateand the resulting allocator churn).related to #104169
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Avoid eager JSON serialization of Iceberg manifest entries when
iceberg_metadata_log_levelis below the call site's threshold.