Skip to content

SQL: no PostgreSQL dialect; Postgres-style .sql is labelled db2_sql or sqlite and sqlite-labelled files lose every CREATE FUNCTION (sqldoom: 93 of 110 found) #5622

Closed

Description

@squid-protocol

Problem

cedardb/sqldoom (GPL-2.0, 95753a20e) is a DOOM engine written in PostgreSQL-compatible SQL (CedarDB): 69 .sql files with 110 CREATE OR REPLACE FUNCTION, 110 CREATE TABLE, 24 CREATE TYPE, 5 views, recursive CTEs in 7 files. The engine has no PostgreSQL dialect (languages/ has db2_sql.py, sqlite.py): 45 files are labelled db2_sql (93 functions found), 20 are labelled sqlite (0 functions, e.g. sql/client/automap.sql, render_automap.sql), so 17 of 110 functions are missed and the dialect label is wrong for all 65.

PostgreSQL is the most common open-source SQL dialect, so this affects any repo with Postgres migrations, functions or dbt-style SQL.

Acceptance

  • A PostgreSQL dialect (CREATE [OR REPLACE] FUNCTION/PROCEDURE ... LANGUAGE sql|plpgsql, $$/$tag$ bodies, CREATE TYPE, RETURNS TABLE, DO blocks) chosen over db2/sqlite by content evidence, with tests per shape, and the db2/sqlite classifiers no longer claiming Postgres files.
  • Rescan of sqldoom: 110/110 functions, all files one dialect; no drift on existing db2/sqlite goldens (or explained).

Found by scanning licensed non-C DOOM ports for the DOOM Crucible corpus (#5619, #5457); clones are local at pinned SHAs, nothing third-party is committed.

🤖 Generated with Claude Code

Activity

  1. added
    bug
    core-engine
    priority: high
    scope:core
    needs:doom-corpus
    on Oct 19, 2026
  2. squid-protocol commented on Oct 20, 2026

    @squid-protocol
    OwnerAuthor

    Claimed by promoter-bot host nyx, lease renewed 2026-10-20T10:26Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:nyx label.

  3. squid-protocol commented on Oct 20, 2026

    @squid-protocol
    OwnerAuthor

    Acceptance met with #5642 (slice 1) and #5723 (slice 2): sqldoom rescan gives 67 files all postgresql, 110/110 functions, no sqlite/db2_sql labels, no drift on db2/sqlite goldens. Remaining polish (.psql/.pgsql audit, %PLACEHOLDER% routine names, rosetta folder, fidelity row, \i imports) is tracked in the PR's sibling/slice lists, not acceptance.

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

    bugclaim:nyxcore-engineneeds:doom-corpuspriority: highscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions