Repository navigation
SQL call sites: Db2 CALL leaving the file reaches call_site_data (Part of #5736) - #6080
Merged
Merged
Conversation
…ite_data and resolves to its SQL file (Part of #5736) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ut of program-call completeness, re-bless (Part of #5736) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 22, 2026 22:57
Owner
Author
|
No description provided. |
squid-protocol
enabled auto-merge (squash)
October 22, 2026 22:59
Contributor
This was referenced Oct 22, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #5736
Checklist: partial [c:0755f773] -- Db2 SQL done; PostgreSQL left (see Sibling gaps)
What
call_site_datawas empty for SQL. A Db2 SQLCALL nameto a routine the file does not itself create is now a call site (verb CALL, form literal, schema qualifier dropped, quoted names unquoted, upper-cased), andresolve_invocationsresolves it to the db2_sql file that creates that routine. Same split as PL/I (#3491): a CALL of a routine in the same file stays a function-level edge (calls_out_to); comments and quoted text are skipped;PERFORM f()/SELECT f()are expressions, not sites.db2_sql.py: top-levelboundary_extraction: "sql".mainframe_boundary.py:sql_external_calls+sqldialect.invocation_resolver.py: SQL sites resolve against a SQL-only routine index, so a SQL CALL never lands on a COBOL program of the same name (and COBOL CALLs never land on SQL routines).galaxy_ir.py: the mainframe skeleton's "program calls" channel skips db2_sql files. Without this, 27 db2unit CALLs read as "missing program" and moved the completeness ratio 65.3% -> 62.4%.Class table
boundary_extractionline inpostgresql.py(the 6th file, past the 5-file limit); the reader and resolver already take itEvidence
galaxyscope --db-only, two-file repo):call_site_datarowCALL|AUDIT_LOG|line 5,src_file_idcaller.sql,dst_file_idaudit.sql.db2_sql/db2unit/06-AssertsNoMessage.sqlgains 27 call sites (call_sites.json); LLM brief coverage 756 -> 757 files with mainframe facts, 867 -> 894 call sites. The skeleton-completeness channels do not move.tests/extraction/languages/test_sql_call_sites_5736.py(4) plus the db2 strict and COBOL engine:EXEC SQL CALL procis recorded as a COBOL dynamic CALL (operand = the schema qualifier) #4304 suites.pr_gates --fast7/7,--ratchets9/9.Sibling gaps
postgresql.pyplus"postgresql"inSQL_ROUTINE_LANGUAGESand in the galaxy_ir filter. No burned program needs it.CALLinside COBOLEXEC SQLis COBOL engine:EXEC SQL CALL procis recorded as a COBOL dynamic CALL (operand = the schema qualifier) #4304's mechanism (unchecked item).Cross-repo: none.
🤖 Generated with Claude Code