feat(ingest/boomi): add process lineage from connector shapes and process calls

AC
3d ago
+3158-329

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, QUERY and GET mean read.
  • *SendAction, CREATE, INSERT, UPSERT, UPDATE, DELETE and EXECUTE mean write.
  • Anything else counts as an unknown direction and is reported.

Platform resolution, first match wins:

  1. connection_to_platform[<connection component id>].
  2. The parsed connection: legacy Database driverId or custom JDBC URL, Database V2 JDBC URL, or Salesforce.
  3. connection_type_platform_map[<subType>].

Tables

ConnectorSource of the table name
Legacy DatabaseProfile SQL, parsed with create_lineage_from_sql_statements. Falls back to DBStatement@tableName.
Database V2objectTypeId, or the query field through SQL parsing.
SalesforceThe operation's object name. Casing is kept, to match the Salesforce source.
Generic subTypes mapped through connection_type_platform_mapobjectTypeId. Experimental.
SAP RFC, HTTP, FTP/SFTP, Disk, mailNo 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.
  • dataJobInputOutput is no longer emitted when include_lineage: false or 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 objectTypeId values.
  • 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 Database driverId or JDBC URL, Database V2 JDBC URL, Salesforce, or a JDBC URL field in any other connection), then connection_type_platform_map.
  • New config options connection_to_platform and connection_type_platform_map map connections and subtypes to platforms, with optional platform_instance, env, database, and default_schema overrides; the type map wins over a disagreeing JDBC URL.
  • Legacy Database tables come from profile SQL parsed from ReadProfile/WriteProfile child elements, with the attribute form as fallback; Database V2 tables come from objectTypeId or 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, adding sqlglot to the boomi plugin dependencies.
  • Custom-driver connection URL templates are filled from host, port, dbname, and additional before parsing; Oracle drops its SID/service, and Database V2 MySQL/MariaDB uses schemaName as the database.
  • When a connection, operation, or profile can't be read, dataJobInputOutput is left out so lineage from an earlier run isn't overwritten; such processes are listed in lineage_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 dataJobInputOutput is skipped when include_lineage: false or 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 ... SELECT keeps only the target table; selected source tables are not added as inputs.