Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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)

Chiusa
#5,622 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
58/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
postgresql, python, sql

Direzione di ricerca

Start with languages/db2_sql.py and languages/sqlite.py to understand dialect detection and the existing CREATE FUNCTION matching. Add a PostgreSQL dialect covering the listed SQL constructs, then add focused tests for each supported shape and classifier precedence. Verify completion by rescanning cedardb/sqldoom for 110/110 functions and confirming existing db2/sqlite goldens do not drift.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug core-engine needs:doom-corpus priority: high scope:core

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

Lingua principale
Python
Stelle
57
Fork
11
Merge medio
1h 51m
PR unite (30g)
982

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di squid-protocol/gitgalaxy

Tutte le issue di squid-protocol/gitgalaxy

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.