Skip to content

remove isOrdered from the function grammar - #29

Merged
emrberk merged 2 commits into
masterfrom
remove-isordered-function
Aug 18, 2026
Merged

remove isOrdered from the function grammar#29
emrberk merged 2 commits into
masterfrom
remove-isordered-function

Conversation

@emrberk

@emrberk emrberk commented Aug 18, 2026

Copy link
Copy Markdown
Member

Removes isOrdered from the grammar. No reference to the function remains anywhere in the repo.

Changes

  • src/grammar/functions.ts — dropped isOrdered from aggregateFunctions, so it no longer surfaces in autocomplete.
  • tests/fixtures/docs-queries.json — removed the two docs-sourced queries that called isOrdered (1799 to 1797 entries; no test asserts a fixed count).
  • tests/autocomplete.test.ts — the CREATE TABLE x (id i test used isOrdered as its sentinel for "no functions suggested in a column-type position". With the entry gone from the grammar that assertion would pass vacuously, so it now uses is_leap_year — still an i-prefixed function in the grammar, keeping the test meaningful.

Verification

  • yarn test — 6986 passed (9 files). Down 6 from the 6992 on master: the two removed fixture queries across the parse, round-trip, and autocomplete docs suites.
  • yarn typecheck — clean
  • yarn lint — clean

🤖 Generated with Claude Code

emrberk and others added 2 commits August 18, 2026 13:37
Drop `isOrdered` from `aggregateFunctions` so it no longer surfaces in
autocomplete.

The CREATE TABLE column-type test used `isOrdered` as its sentinel for
"no functions suggested here"; with the entry gone that assertion would
pass vacuously, so it now uses `is_leap_year` — still an `i`-prefixed
function in the grammar, so the test keeps proving what it was written
to prove.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Removes the two `isOrdered` queries from docs-queries.json, so no trace
of the function remains in the repo. Fixture goes 1799 -> 1797 entries;
no test asserts a fixed count.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@emrberk
emrberk merged commit 3bd471d into master Aug 18, 2026
2 checks passed
emrberk added a commit to questdb/ui that referenced this pull request Aug 19, 2026
bump @questdb/sql-parser to 0.1.17, e2e submodule to latest master

sql-parser 0.1.17 drops isOrdered from the grammar
(questdb/sql-parser#29); nothing in src/ references it.

Also advances the e2e/questdb submodule 16 commits to fbbe40f4.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

2 participants