Skip to content

Keywords that only need to be non-reserved to be usable as names: target, query, store, search, plan, show and more #2627

Closed

Description

@mathiasrw

Many keywords that are common field names cannot be used as names in AlaSQL, while SQLite (our reference engine) accepts them. This issue collects the ones that should only need to be added to the NonReserved rule and the nonReserved list in src/alasqlparser.jison, the same way as earlier:

It continues the per-keyword series (#2212 to #2261). The words in the second issue start something valid where a name stands (COUNT(, SELECT TOP), so they need a grammar change instead (#2628).

Measured on develop (3c08bbf)

Each word as a name in five places: CREATE TABLE t (w INT), SELECT w FROM t, WHERE w = 1, t.w and data->w. Every word below fails in all five in AlaSQL and works in SQLite 3.43 in all three places tested there.

Word Series issue
target #2216
temp #2215
search #2221, #2257
plan #2253
graph #2249
remove #2255
call #2245
timeout #2260
trigger #2214
identity #2229
rename #2254
show #2258
by #2240
grouping #2230
query, store, no, rows, class, percent, offset, print, repeat, return, merge, edge, vertex, enum none
output, go (these two fail only right after SELECT) none

Direction

Add the words to both lists, one at a time, and test each one in the five places. A word that causes a new grammar conflict or breaks an existing test moves to #2628. grouping, percent, offset and go are the ones most likely to need more than the list.

The grammar warnings must stay at 282, and yarn jison must reproduce the committed parser.

This only accepts SQL that fails to parse today, so it is not breaking.

Already done, or not to do

Tests: test/test<id>.js with one it per word, covering the five places, plus INSERT INTO t (w) VALUES (1) and an ORDER BY w.

Activity

  1. added a commit that references this issue on Oct 28, 2026
    ecba5f6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions