Skip to content

fix: remove implicit select suggestions filtering, context-aware function suggestions#556

Open
emrberk wants to merge 3 commits intomainfrom
fix/implicit-select-and-functions
Open

fix: remove implicit select suggestions filtering, context-aware function suggestions#556
emrberk wants to merge 3 commits intomainfrom
fix/implicit-select-and-functions

Conversation

@emrberk
Copy link
Copy Markdown
Collaborator

@emrberk emrberk commented Apr 21, 2026

Related parser commit: questdb/sql-parser@5a422b0

Summary

Bumps @questdb/sql-parser from 0.1.8 to 0.1.9 — autocomplete now picks function categories from the cursor's grammar context instead of dumping the full function list at every identifier position, implicit select statements suggestions are included in the statement start.

Adds manual resolutions for lodash and lodash-es to version 4.18.1 to resolve vulnerability scan issues

Examples

t|

  • Before: Not suggesting any tables
  • After: Suggests trades (if table exists), tables, wal_tables etc.

SELECT * FROM trades ASOF JOIN m|

  • Before: 332 entries — materialized_views, maxUncommittedRows, max, median, mid, millis, min, …
  • After: 3 entries — materialized_views, memory_metrics, table_writer_metrics

SELECT * FROM trades WHERE price = c|

  • Before: scalars + aggregates mixed (coalesce, count, count_distinct, corr, covar_*, …)
  • After: scalars only (coalesce, concat, cos, ceil)

INSERT INTO trades VALUES (n|

  • Before: 0 suggestions
  • After: now, now_ns, nullif, nanos, netmask

WHERE id IN (SELECT c| (subquery inside WHERE)

  • Before: aggregates missing — outer WHERE restriction leaked into the inner SELECT
  • After: count, count_distinct, corr, coalesce — aggregates restored

@emrberk emrberk requested a review from bluestreak01 April 21, 2026 11:19
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