fix: Fix filter key fetching on multi-shard distributed tables#2636
Conversation
🦋 Changeset detectedLatest commit: 41529b5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile SummaryThis PR fixes Map-key discovery across version-mismatched ClickHouse shards. The main changes are:
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (4): Last reviewed commit: "Merge branch 'main' into drew/fix-filter..." | Re-trigger Greptile |
E2E Test Results✅ All tests passed • 237 passed • 3 skipped • 1510s
Tests ran across 4 shards in parallel. |
17a1498 to
041aa42
Compare
041aa42 to
0068445
Compare
🔵 Tier 2 — Low RiskSmall, isolated change with no API route or data model modifications. Why this tier:
Review process: AI review + quick human skim (target: 5–15 min). Reviewer validates AI assessment and checks for domain-specific concerns. Stats
|
Deep Review✅ No critical issues found. This is a tight, well-scoped fix: both 🔵 P3 nitpicks (3)
Reviewers (6): correctness, testing, maintainability, kieran-typescript, performance, project-standards. Testing gaps: The new tests assert only the rendered SQL string; the actual failure mode ( |
Summary
This PR fixes an query error when fetching map keys for filters from a distributed table where the distributed table requests keys across servers with different versions. More details here
Screenshots or video
Before filter key query fails:
After query suceeds:
How to test on Vercel preview
The fix can be validated against LogHouse, the change can be regression tested by using the filters in the preview environment.
References