Skip to content

SQL: routines record no calls at all (sqldoom: 109 function-to-function calls among 110 SQL functions, engine 0), in both db2_sql- and sqlite-labelled files #5635

Closed

Description

@squid-protocol

Problem

cedardb/sqldoom (GPL-2.0, 95753a20e): its 110 CREATE OR REPLACE FUNCTION routines call each other 109 times in the source (doom_x(...) inside another function's body). The engine records 0 call edges for every SQL function it extracts (93 functions; the other 17 are lost to the dialect issue #5622), in files labelled db2_sql as well as sqlite. call_site_data is empty too. So the SQL call graph is absent: no fan-in/fan-out, PageRank or blast radius for SQL routines. This matters beyond DOOM: Db2 stored procedures and functions in mainframe estates, Postgres functions, dbt-style SQL.

Acceptance

Found by the DOOM corpus call-graph checks (#5630, #5457).

🤖 Generated with Claude Code

Activity

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

    @squid-protocol
    OwnerAuthor

    PR #5657 landed calls_out_to for db2_sql and postgresql. Issue stays open: the sqldoom >= 109 resolved-edge rescan was not measured (clone absent on the worker box), and sqlite has no stored routines so it is unchanged. Remaining: rescan sqldoom once the clone is available; sibling gaps listed in the PR.

  3. squid-protocol commented on Oct 20, 2026

    @squid-protocol
    OwnerAuthor

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

  4. squid-protocol commented on Oct 20, 2026

    @squid-protocol
    OwnerAuthor

    Acceptance met: calls_out_to recorded for SQL routines (#5657), sqldoom rescan measured at 109 resolved caller->callee edges after the noise fix (#5735), built-ins excluded, per-dialect tests added, goldens/crucible no diff. Remaining gaps (call_site_data for SQL, comment-sliced headers, MySQL prefix comments) are listed as sibling gaps in #5735.

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-enginemetricsneeds:doom-corpuspriority: highscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions