Repository navigation
Fuzzers update (hope CI won't be very red this time) - #115264
Conversation
|
Workflow [PR], commit [abd3a6f] Summary: ❌
AI ReviewSummaryThis PR broadens the query-fuzzer / Missing context / blind spots
Findings
Final Verdict
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 0/0 (nothing coverable) · Uncovered code |
| auto original_name = getOriginalTableName(table_id.getTableName()); | ||
| auto it = original_table_name_to_fuzzed.find(original_name); | ||
| if (it != original_table_name_to_fuzzed.end() && !it->second.empty()) | ||
| const auto new_table_name = pickFuzzedTableName(table_id.getTableName()); |
There was a problem hiding this comment.
pickFuzzedTableName now returns only the table component, but the new CREATE ... AS / CLONE AS retargeting later in fuzzCreateQuery consumes that as if it were a full source identity: it picks a random live clone name, assigns it to create.as_table, and clears as_database (src/Common/QueryFuzzer.cpp:2021-2027). That means a source from another database is rewritten as an unqualified name that resolves in the current DB, and CLONE AS can also land on a non-MergeTree or different-key source that InterpreterCreateQuery rejects (src/Interpreters/InterpreterCreateQuery.cpp:884-917, 2985-3000).
Could this helper return a full StorageID (or otherwise preserve database + table together), and have the CLONE AS path sample only from compatible MergeTree siblings?
An input which has finished cannot send more chunks of a bucket, so it does not have to be past the bucket for the bucket to be pushed. Taking it into account kept a bucket until the end of the query when a source ended right on it, although every input which can still send something had moved past it. An input port reports itself finished only when it has no data left on it, so nothing of the bucket is lost. Reported by review of #115264. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01BAZjq1jL3wNACqVQzocPoT
`GroupingAggregatedTransform::prepare` takes the ports whose edge has changed, `ExecutingGraph::updateNode` collects them from the changed edges alone. The driver of the test reported every input on every call, so the transform saw a waiting port without data and dropped it from the waiting set, although the real executor stays in `NeedData` until that port really changes. The reproduction relied on that: it pushed the bucket in a state which does not happen in a pipeline. Report only the ports which were really given a chunk or finished. The reproduction is a producer which postponed buckets 6 and 7 and resolves them in order now, and never sends anything above 7, so `current_bucket` stays behind the bucket which is pushed. Reported by review of #115264. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01BAZjq1jL3wNACqVQzocPoT
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Workflow [PR]
Sync PR [sync-upstream/pr/115264]