fix: Fix side panel for backticked aliases, hyphenated columns - #3115
fix: Fix side panel for backticked aliases, hyphenated columns#3115pulpdrew wants to merge 1 commit into
Conversation
🦋 Changeset detectedLatest commit: a1f17fd The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
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.
|
🟡 Tier 3 — StandardIntroduces new logic, modifies core functionality, or touches areas with non-trivial risk. Why this tier:
Additional context: touches the query rendering engine lightly (37 lines, under the 150-line bar for Tier 4) Review process: Full human review — logic, architecture, edge cases. Stats
|
Deep Review✅ No critical issues found. The two prior Greptile P1s are resolved or non-blocking: the CLI Dynamic-null path now inserts 🟡 P2 -- recommended
🔵 P3 nitpicks (1)
Reviewers (6): correctness, adversarial, kieran-typescript, testing, maintainability, previous-comments. Coverage note: Findings reflect the completed previous-comments reviewer plus direct orchestrator verification of the tokenizer, quoting helpers, both Testing gaps:
|
Greptile SummaryThis PR fixes row-detail predicates for hyphenated result columns and preserves aliases containing backtick-quoted identifiers.
Confidence Score: 5/5The PR appears safe to merge; the previously reported CLI Dynamic-null failure is fixed and no new actionable regressions remain. The CLI now renders both quoted identifiers and alias expressions directly inside
|
| Filename | Overview |
|---|---|
| packages/cli/src/shared/useRowWhere.ts | Uses raw column expressions for Dynamic null predicates, resolving the previous double-quoting failure. |
| packages/app/src/hooks/useRowWhere.tsx | Quotes non-bare result column names while preserving alias expressions. |
| packages/common-utils/src/clickhouse/index.ts | Integrates quoted-identifier tokenization and restoration into alias-map parsing. |
| packages/common-utils/src/core/metadata.ts | Adds shared helpers for safely quoting identifiers and result column names. |
| packages/common-utils/src/core/utils.ts | Adds string-aware backtick tokenization and deterministic placeholder restoration. |
Reviews (3): Last reviewed commit: "fix: Fix side panel for backticked alias..." | Re-trigger Greptile
PR Review3 finding(s): 🔴 0 critical · 🟠 1 major · 🔵 2 minor 2 posted as inline comment(s) on the changed lines. 1 listed below. Findings outside the changed lines
Severity is the reviewer's own estimate and is used for ordering, not filtering. |
E2E Test Results✅ All tests passed • 356 passed • 1 skipped • 1512s
Tests ran across 4 shards in parallel. |
d6bedd8 to
aecd61c
Compare
aecd61c to
a1f17fd
Compare
Summary
This PR fixes a few bugs causing failures when opening the row side panel, when not using the _block_number/ _block_offset based lookup.
To reproduce, disable _block_number/ _block_offset based lookup with
ALTER TABLE <source_table> MODIFY SETTING enable_block_offset_column = 0, enable_block_number_column = 0;Screenshots or video
Select containing hyphenated column:
Before
After
Select containing a backtick-quoted alias, with other aliases
Before
After
How to test locally
Add a hyphenated column to your logs table
Disable the block_number filtering:
References