Skip to content

INDEXED BY and NOT INDEXED after a table name are parse errors #2762

Closed

Description

@mathiasrw

SQLite's INDEXED BY name and NOT INDEXED after a table name are parse errors. Seen in the sqllogictest run (evidence/slt_lang_aggfunc.test and others), reproduced on develop (06211a0):

alasql('CREATE TABLE t1 (x INTEGER)');
alasql("SELECT group_concat(x, ':') FROM t1 NOT INDEXED");   // Parse error
alasql('SELECT x FROM t1 INDEXED BY t1i1');                  // Parse error

Both are hints about index use and do not change the result in SQLite, so accepting them (and ignoring them) would make SQLite queries run.

Not breaking: they have never parsed.

Activity

  1. added this to the v4.x Focus milestone on Oct 21, 2026
  2. mateuscmtropical commented on Nov 11, 2026

    @mateuscmtropical
    Contributor

    Hi, I'd like to work on this one.

  3. mateuscmtropical commented on Nov 11, 2026

    @mateuscmtropical
    Contributor

    Hi, I've opened a PR for this: #3029

  4. added a commit that references this issue on Nov 16, 2026
    3db7188
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions