feat(ingest/boomi): add process lineage from connector shapes and process calls
Summary
Stacked on #20889. Adds lineage to the boomi source.
Each process's connectoraction shapes resolve to dataset lineage on its process DataJob, and processcall shapes become inputDatajobs edges.
Direction. Read/write comes from the operation component, not the shape's actionType. Real exports use Get, GET, Send, UPSERT, QUERY, EXECUTE, Listen and Produce there.
*GetAction,QUERYandGETmean read.*SendAction,CREATE,INSERT,UPSERT,UPDATE,DELETEandEXECUTEmean write.- Anything else counts as an unknown direction and is reported.
Platform resolution, first match wins:
connection_to_platform[<connection component id>].- The parsed connection: legacy Database
driverIdor custom JDBC URL, Database V2 JDBC URL, or Salesforce. connection_type_platform_map[<subType>].
Tables
| Connector | Source of the table name |
|---|---|
| Legacy Database | Profile SQL, parsed with create_lineage_from_sql_statements. Falls back to DBStatement@tableName. |
| Database V2 | objectTypeId, or the query field through SQL parsing. |
| Salesforce | The operation's object name. Casing is kept, to match the Salesforce source. |
Generic subTypes mapped through connection_type_platform_map | objectTypeId. Experimental. |
| SAP RFC, HTTP, FTP/SFTP, Disk, mail | No dataset edges. Counted per subType. |
Unresolved shapes are counted by reason and reported once per cause. URNs are never built from guessed values. Connection, operation and profile components are cached, so shared components are fetched only once.
Behaviour changes:
- DataJobs are now emitted after all DataFlows, so process-call edges only point at processes emitted in the same run.
dataJobInputOutputis no longer emitted wheninclude_lineage: falseor when the process XML can't be read. That avoids overwriting existing lineage with an empty aspect.
Known limitation. For write SQL such as INSERT ... SELECT, only the target table is kept. The source tables it selects from are not added as inputs.
Validation status
The XML shapes match Boomi's documented component structure and the shape of real exported components: bns: root with xmlns="" children. They haven't been checked against a live account yet. Still unconfirmed:
- The DB operation profile attribute name.
- Snowflake
objectTypeIdvalues. - The mail subType string.
Testing
- 87 unit tests covering:
- Parsers for each component type.
- Direction mapping and JDBC URL parsing.
- Platform resolution priority.
- Every table path above.
- Skipped and unresolved reporting.
- Process-call edges.
- Component caching.
- Golden test covering legacy DB with SQL and the tableName fallback, DB V2 with a table and with a query, Salesforce, a mapped Snowflake generic connector, a skipped HTTP connector, an unmapped NetSuite connector and process calls. It reruns deterministically.
š¤ Generated with Claude Code
Summary by cubic
Adds process lineage to the boomi source: connector action shapes resolve to dataset lineage on each process's DataJob, and process call shapes become inputDatajobs edges to the called processes.
- Read/write direction comes from the operation component, not the shape's
actionType. - Platforms resolve from
connection_to_platform, then the parsed connection (legacy DatabasedriverIdor JDBC URL, Database V2 JDBC URL, Salesforce, or a JDBC URL field in any other connection), thenconnection_type_platform_map. - New config options
connection_to_platformandconnection_type_platform_mapmap connections and subtypes to platforms, with optionalplatform_instance,env,database, anddefault_schemaoverrides; the type map wins over a disagreeing JDBC URL. - Legacy Database tables come from profile SQL parsed from
ReadProfile/WriteProfilechild elements, with the attribute form as fallback; Database V2 tables come fromobjectTypeIdor query SQL parsing; Salesforce from the operation's object name; other JDBC-URL connections from a SQL field when present. - SQL parsing uses
datahub.sql_parsing, addingsqlglotto theboomiplugin dependencies. - Custom-driver connection URL templates are filled from
host,port,dbname, andadditionalbefore parsing; Oracle drops its SID/service, and Database V2 MySQL/MariaDB usesschemaNameas the database. - When a connection, operation, or profile can't be read,
dataJobInputOutputis left out so lineage from an earlier run isn't overwritten; such processes are listed inlineage_processes_incomplete. - Unresolved shapes are counted and reported once per cause, never as guessed URNs; shapes with multiple JDBC URLs or SQL statements are skipped and reported.
- DataJobs are emitted after all DataFlows, and
dataJobInputOutputis skipped wheninclude_lineage: falseor the process XML can't be read. - Connection, operation, and profile components are cached; lineage shapes and fixtures were validated against a live Boomi account.
- Known limitation: write SQL such as
INSERT ... SELECTkeeps only the target table; selected source tables are not added as inputs.