Skip to content

fix: preserve quoted dots in alias completions - #219

Merged
Light2Dark merged 1 commit into
mainfrom
codex/quoted-alias-completions
Oct 14, 2026
Merged

Light2Dark merged 1 commit into
mainfrom
codex/quoted-alias-completions

Conversation

@Light2Dark

@Light2Dark Light2Dark commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

This pull request was authored by a coding agent.

📝 Summary

  • Typing u. for FROM "my.db".users u or FROM "my.table" u fails to offer the table's columns because dots inside quoted identifiers become path separators.
  • Reuse the existing identifier tokens when extracting incomplete-query paths and keep the table's segmented path through alias column lookup. Public alias-map values and ordinary qualified-name behavior remain unchanged.
  • Cover quoted catalog/table names alongside genuinely nested names, and both parsed and incomplete query contexts. This change is limited to alias column completion; other consumers of flattened paths remain separate follow-ups.

📋 Pre-Review Checklist

  • For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • Any AI generated code has been reviewed line-by-line by the human PR author, who stands by it.
  • Video or media evidence is provided for any visual changes (optional).

✅ Merge Checklist

  • I have read the contributor guidelines.
  • Documentation has been updated where applicable, including docstrings for API changes.
  • Tests have been added for the changes made.

Written by gpt-6 on Codex

@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 93.38% 1709 / 1830
🔵 Statements 93.48% 1766 / 1889
🔵 Functions 94.71% 233 / 246
🔵 Branches 87.18% 1374 / 1576
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/sql/alias-completion-source.ts 100% 85.18% 100% 100%
src/sql/query-context.ts 97.67% 91.74% 100% 97.63% 83, 107, 122, 164, 223, 244
Generated in workflow #927 for commit 719e1e7 by the Vitest Coverage Report Action

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

Re-trigger cubic

@Light2Dark
Light2Dark marked this pull request as ready for review October 14, 2026 14:09
@Light2Dark
Light2Dark merged commit 719e1e7 into main Oct 14, 2026
6 checks passed
@Light2Dark
Light2Dark deleted the codex/quoted-alias-completions branch October 14, 2026 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant