Introducing a new way to review your PRs.

Read the announcement

open-metadata / openmetadata

The Open Context Layer for Data and AI , OpenMetadata is the open platform for building trusted data context and business semantics for humans, AI assistants, and agents.

View on GitHub

26 documents · Updated Nov 23, 2026

docs / ingestion-connectors

Ingestion connectors

Ingestion connectors read metadata from an external system and publish it to OpenMetadata. They share one path for access checks, discovery, conversion, status, and publishing. Each connector maps source objects to stable catalog entities and treats incomplete reads as unknown rather than as proof that an object was removed. This page gives the connector view of metadata ingestion. Read ingestion workflows for run control and Airflow ingestion integration for scheduling and operation.

Connector architecture

The connector boundary separates access to an external system from catalog updates. A workflow selects a source type and typed settings. The connector opens the service, discovers its objects, and yields typed metadata records. A sink sends those records to OpenMetadata or saves them for local review.

This diagram shows how workflow settings become catalog entities and related records.

flowchart LR
    C[Workflow settings] --> R[Connector resolution]
    R --> A[Service connection]
    A --> S[Source topology]
    S --> E[Typed metadata records]
    E --> K[REST sink]
    E --> F[Optional file sink]
    K --> O[OpenMetadata catalog]

Connector resolution

Connector resolution maps a source type to a service family, a source configuration model, a connection owner, and the source class for each supported mode. Validation happens before extraction. An unknown type or unsupported setting fails at the configuration boundary.

Most connectors use a ServiceSpec manifest. It names the main metadata source and can name sources for lineage, usage, profiling, sampling, tests, data diff, or metrics. A mode suffix such as -lineage or -usage selects another registered source for the same service. Older custom connectors can still use module-level connection functions while they move to the common connection model.

References: ingestion/…/parser.py• L157-199 ingestion/…/parser.py• L267-309 ingestion/…/service_spec.py• L30-65 ingestion/…/service_spec.py• L77-145 ingestion/…/importer.py• L82-112 ingestion/…/service_spec.py• L1-19

Service connections

The service connection is the access boundary for a connector. The preferred connection owner creates a client on first use, checks access to the objects and modes selected by the run, and releases the client and related resources when the source closes. Connection settings describe access. Source settings describe the objects to read and the catalog updates to make.

Connection checks should prove access to the objects needed by the selected mode. A database check can inspect a usable schema and its tables. A file connection can check each configured root. A failed check stops the source before the topology walk. Some sources such as dbt read files and need no live source connection.

Recent connectors use bounded and source-aware checks. Data 360 checks the Salesforce org and each pipeline object family. Tableau checks flows, views, owners, data sources, and named source tables. NATS checks JetStream topic access and an optional schema key-value bucket. MicroStrategy checks login, project access, and paged dossier search through its configured Library API path. These checks make a successful connection mean that the selected metadata path is usable, not only that credentials were accepted.

References: ingestion/…/connection.py• L50-75 ingestion/…/connection.py• L82-144 ingestion/…/connections.py• L41-137 ingestion/…/client.py• L41-120 ingestion/…/connection.py• L43-126 ingestion/…/connection.py• L322-409 ingestion/…/connection.py• L168-266 ingestion/…/client.py• L117-234

Source contract

A source converts native service objects into OpenMetadata request models. The shared source base manages setup and status. A service-family base defines the entity hierarchy and the conversion points that each service implementation supplies.

Source results use Either, which carries either a successful record or a structured error. A record error can be reported while the run continues. A setup or access error stops normal extraction before the source walk.

Topology contract

A service topology is the hierarchy that connects source objects to catalog entities. A producer lists source objects. A stage converts one object into a catalog request or related record. A child node uses parent context to find and name its own objects.

The runner starts at the service node and walks child nodes. It carries parent identity through the walk. This lets one contract support flat APIs, nested databases, graph labels and relationships, dashboards with charts, pipelines with tasks, and object stores with nested containers.

This diagram shows the normal relationship between discovery, conversion, and publishing.

flowchart TD
    P[Source producer] --> S[Entity stage]
    S --> C[Child producer]
    C --> D[Child stages]
    D --> X[Related records]
    S --> K[Sink records]
    D --> K
Topology conceptPurpose
ProducerLists native source objects.
StageConverts an object into a catalog request or related record.
ConsumerNames the parent context needed by a child.
ContextCarries parent identity and related values during the walk.
Post-processRuns work after a node ends, such as deletion checks or deferred lineage.

API connectors use a distinct collection stage and endpoint stage. The collection stage flushes before endpoints are produced because an endpoint refers to its collection. Dashboard, database, drive, pipeline, messaging, ML model, search, and storage families use the same parent-before-child idea even when their entity shapes differ.

References: ingestion/…/topology.py• L34-115 ingestion/…/topology.py• L126-221 ingestion/…/topology_runner.py• L247-284 ingestion/…/api_service.py• L64-118 ingestion/…/dashboard_service.py• L108-215 ingestion/…/database_service.py• L95-206

Context and identity

Topology context carries the parent identity used to build a fully qualified name, or FQN. An FQN is the stable catalog name that includes the parent path. Stages use it to attach a table to the right schema, a chart to the right dashboard, a file to the right container, or a graph property to the right label or relationship type.

Identity rules differ at the source boundary. A connector can map a catalog, namespace, stream, path, project, graph database, or source ID to a catalog entity. The rule is valid only when it produces the same FQN for the same source object on later runs. Ambiguous matches are skipped instead of being attached to an unrelated entity. Resolution can also use source-specific evidence, such as BigQuery shard families, OpenLineage symlinks, dbt catalog mappings, Sigma table paths, Tableau asset IDs, and MicroStrategy dossier IDs.

References: ingestion/…/topology.py• L182-221 ingestion/…/resolution.py• L43-139 ingestion/…/metadata.py• L333-435 ingestion/…/metadata.py• L875-947 ingestion/…/metadata.py• L426-480 ingestion/…/metadata.py• L866-1003 ingestion/…/metadata.py• L127-139

Source lifecycle

Most sources follow the same life cycle: validate settings, create or obtain a client, test access, prepare source-specific state, walk the topology, and close the client. Database sources may switch the active catalog or database. Dashboard sources may stage workspace data for one run. Storage sources resolve manifests before they list containers. Artifact sources such as dbt validate and parse files instead of opening a live service.

Source settings control scope and output. Common choices include filters, include flags, owners and tags, lineage and usage, deletion marking, overwrite policy, incremental work, schema inference limits, and thread count. A service can add settings for its own API or data model without changing the shared runner.

Listings used for deletion marking must separate a trusted empty result from a failed or partial result. A partial page or permission error must not make live entities look deleted. Data 360 skips table deletion for a schema when its listing fails. MicroStrategy keeps dashboards, charts, and data models when project search, dossier definitions, or existing chart reads are incomplete. Tableau keeps flow tasks and skips stale-pipeline deletion while flow or extract-refresh listings are incomplete. Unity Catalog and BigQuery apply the same rule to their source scopes. Hex, Power BI, and Sigma preserve records when their dependent reads are incomplete.

References: ingestion/…/common_db_source.py• L108-153 ingestion/…/client.py• L63-162 ingestion/…/metadata.py• L186-245 ingestion/…/client.py• L232-260 ingestion/…/metadata.py• L247-312 ingestion/…/base.py• L184-241

Sink contract

A sink is the publishing side of the connector boundary. MetadataRestSink sends typed requests to the OpenMetadata server. FileSink writes the same records as a JSON array for local checks when a server is not available.

The REST sink sends requests that need an immediate result one at a time. It buffers normal entity creates for bulk writes. A Barrier flushes pending writes before later records continue. This ordering matters when a child or related record needs its parent to exist first.

This sequence shows how a source record reaches the server and how ordering is preserved.

sequenceDiagram
    participant S as Source topology
    participant K as REST sink
    participant O as OpenMetadata server
    S->>K: Typed entity or related record
    K->>K: Write now or add to buffer
    K->>O: Create, patch, lineage, usage, or status request
    O-->>K: Result or error
    K-->>S: Success or structured error
    S->>K: Barrier or close
    K->>O: Flush pending requests

The sink handles entity creates and related work such as tags, custom properties, lineage, usage, pipeline status, profiles, samples, tests, and deletes. Returned entities can update topology context for later stages.

References: ingestion/…/metadata_rest.py• L167-240 ingestion/…/metadata_rest.py• L276-410 ingestion/…/metadata_rest.py• L412-486 ingestion/…/file.py• L29-67

Metadata ownership

The source supplies source metadata, but the sink and server decide how it affects an existing entity. Existing descriptions, tags, owners, and display names are protected by default. Override settings allow a run to replace fields when the source is authoritative.

Lineage replacement is separate from normal metadata overwrite. A connector must use lineage override only for edges that belong to the entity being refreshed. This keeps source-managed edges from removing relationships owned by another source.

References: ingestion/…/topology_runner.py• L423-476 ingestion/…/metadata_rest.py• L488-503 ingestion/…/metadata_rest.py• L618-665 ingestion/…/lineage_processors.py• L408-429

Service-family implementations

Service-family bases define the catalog shape for a group of connectors. A service implementation supplies client access and maps native objects into that shape. The workflow runner and sink remain common across families.

Service familyMain catalog viewRelated records
DatabaseService, database, schema, table, view, and stored procedureColumns, constraints, tags, ownership, lifecycle, metrics, and lineage
DashboardService, data model, dashboard, and chartUsage, ownership, tags, metrics, and lineage
PipelineService and pipelineTasks, status, usage, observability, and lineage
MessagingService and topicTopic schema, sample data, and lineage
StorageService and nested containersManifest data, inferred tables, columns, and tags
DriveService, directory, file, spreadsheet, and worksheetOwnership, tags, and deletion state
APIService, API collection, and endpointRequest and response schemas
ML modelService and modelVersions, runs, features, stores, and parameters
SearchService and search indexField mappings, settings, samples, and index templates
SecurityServiceProvider-specific security records when supported
MCPMCP serverTools, resources, prompts, capabilities, and connection state

The family shape is a product contract. Optional source data can remain empty when a system does not expose it. The implementation must still preserve parent identity, typed requests, filters, include rules, and deletion policy.

References: ingestion/…/database_service.py• L95-206 ingestion/…/dashboard_service.py• L108-215 ingestion/…/pipeline_service.py• L101-163 ingestion/…/messaging_service.py• L73-117 ingestion/…/storage_service.py• L117-156 ingestion/…/drive_service.py• L71-149 ingestion/…/api_service.py• L64-118 ingestion/…/mlmodel_service.py• L65-103 ingestion/…/search_service.py• L68-120 ingestion/…/security_service.py• L51-72 ingestion/…/metadata.py• L133-221

API connectors

API connectors model an API as a service with collections and endpoints. The collection is the parent of an endpoint, so collection records are committed before endpoint records are sent.

The REST connector accepts an OpenAPI or Swagger document from a URL, local file, or object store. It turns request and response schemas into endpoint fields. A malformed endpoint is isolated so it does not discard the rest of the document.

References: ingestion/…/api_service.py• L64-118 ingestion/…/api_service.py• L163-210

Database connectors

Database connectors expose a hierarchy from the database service through databases and schemas to tables, views, and stored procedures. The common database source supplies shared requests and extension points for columns, constraints, tags, owners, profiling, usage, lineage, lifecycle data, metrics, aliases, and deletion policy.

The family can use SQL reflection, a native catalog API, a graph schema API, sampled file data, or a mix of these paths. A shared type layer maps source types into catalog types. Optional enrichment must not block the base table when the source cannot provide it.

The current service-specific patterns include the following:

  • BigQuery can scan more than one project, process changed tables incrementally, and represent date-suffixed physical tables as one logical shard family. It also uses dataset location to choose regional lifecycle and DDL reads, and can add labels and policy tags.
  • Data 360 maps data spaces to databases, fixed object groups to schemas, and data objects to tables. Calculated insights become views. A failed or partial object listing is not treated as an empty scope.
  • dbt is an artifact connector rather than a live database connector. A manifest is required. Other artifacts add descriptions, owners, tags, domains, data products, custom properties, lineage, tests, exposures, metrics, and freshness results.
  • Data lake sources map buckets and paths to database entities and infer table columns from a first file chunk. A metadata template can define structure, partitions, separators, and file formats. Unsupported or unreadable files remain isolated from other paths.
  • Doris and StarRocks retain the common database hierarchy while adding engine-specific table kinds, materialized views, complex types, partitions, comments, and external table types. Doris maps its internal catalog name to the configured service database when resolving view lineage.
  • Greenplum adds multi-database discovery, partition details, view definitions, and distribution-key constraints. MSSQL adds indexed-view types, stored procedures, descriptions, synonyms, and encrypted-procedure markers.
  • Oracle supports version-aware view and materialized-view reads, per-object fallback when bulk reads fail, stored procedures and packages, temporary tables, case-preserving identifiers, and foreign-key resolution. A single unreadable view does not remove the other view definitions.
  • Snowflake can use access-history lineage with a query-history fallback. It also links external stages to storage containers, supports semantic-view lineage when enabled, and splits bounded history windows only when the source cancels a read.

External-table lineage links a catalog table to a storage container only when the reported location resolves to one known container. Equivalent storage schemes and one trailing separator are normalized without changing case-sensitive object paths.

References: ingestion/…/database_service.py• L95-206 ingestion/…/common_db_source.py• L344-447 ingestion/…/metadata.py• L261-323 ingestion/…/metadata.py• L402-445 ingestion/…/client.py• L63-162 ingestion/…/metadata.py• L88-116 ingestion/…/metadata.py• L210-337 ingestion/…/metadata.py• L166-234 ingestion/…/resolution.py• L41-71 ingestion/…/metadata.py• L96-223 ingestion/…/metadata.py• L217-253 ingestion/…/utils.py• L95-188 ingestion/…/metadata.py• L203-258 ingestion/…/lineage.py• L173-195 ingestion/…/lineage.py• L382-405 ingestion/…/external_table_lineage_mixin.py• L51-145

Dashboard connectors

Dashboard connectors translate visual systems into data models, dashboards, and charts. Data models may be independent or owned by a dashboard. Usage, tags, owners, metrics, and lineage are optional related records.

The shared dashboard shape supports bulk data-model discovery and per-dashboard discovery. Project or workspace filters apply before the topology emits records. Data models and charts are committed before deferred lineage and metric work, so later stages use assets that the server accepted.

The service-specific patterns include the following:

  • MicroStrategy pages project search through its configured Library API path and validates each object separately. Dossiers produce dashboards, charts, and data models. Cube SQL provides table and column lineage when the source exposes it. Chart identity includes the dossier because page and visualization keys are local to a dossier. Incomplete project, dossier, or chart reads preserve existing catalog data.
  • Hex uses a project export as the preferred source for SQL cells and imported components. Access denial can fall back to the cells API, while transient export failures remain unknown. Data connections and warehouse lookups enrich lineage but do not replace unread models or charts.
  • Power BI can read .pbit files from local storage, S3, Azure, or GCS. It extracts model schemas for data-model enrichment. A damaged archive or unsafe object path affects only that file.
  • Qlik Sense uses a secure WebSocket session for app discovery. It reads sheets, data models, and load scripts. The broad table endpoint is preferred and the app load model is a fallback, so script-created tables can still be represented when the first endpoint is unavailable.
  • Sigma supports opt-in organization-wide listing. It maps workbooks and standalone data models, pages all results, and caches bounded owner and file reads. Workbook SQL is the primary lineage path. File lineage is the fallback when query data is absent. A table match must be unique.
  • Tableau uses REST APIs for workbooks and views and its Metadata API for data sources and source tables. Filters run before expensive workbook reads. Connection checks distinguish missing Metadata API access from unreadable source tables, so metadata can still ingest when lineage cannot.

References: ingestion/…/dashboard_service.py• L108-215 ingestion/…/client.py• L236-279 ingestion/…/client.py• L290-416 ingestion/…/column_lineage.py• L183-206 ingestion/…/metadata.py• L341-511 ingestion/…/metadata.py• L649-811 ingestion/…/client.py• L64-216 ingestion/…/file_client.py• L89-203 ingestion/…/client.py• L99-163 ingestion/…/client.py• L181-297 ingestion/…/client.py• L148-190 ingestion/…/client.py• L245-295 ingestion/…/connection.py• L354-382

Pipeline connectors

Pipeline connectors represent orchestration and data-movement systems as pipelines. The shared pipeline shape covers tasks, run status, usage, observability, and links to source or target data assets.

The common pipeline stages write the pipeline before status, lineage, usage, and observability. A connector must keep task names stable because status records must refer to tasks present on the pipeline entity.

The service-specific patterns include the following:

  • Airflow reads DAGs and uses an auth callback that can refresh Airflow 3 JWTs, fall back to Basic auth for older Airflow servers, or refresh GCP OAuth tokens. The callback keeps long runs from using an expired token.
  • OpenLineage reads data-movement events from Kafka, Kinesis, or NATS. It accepts COMPLETE, RUNNING, and START events, then maps their tables, topics, and jobs to catalog assets and pipelines. Table resolution tries symlink and top-level identities in order. Unresolved or ambiguous identities are skipped instead of creating false lineage.
  • OpenLineage treats each broker as a delivery contract. Kafka stores offsets only after an event is handed to the ingestion flow. Kinesis supports aggregated records. NATS uses a durable JetStream consumer, confirms acknowledgements, and keeps slow batches alive until they finish.
  • Data 360 represents data streams, calculated insights, and data transforms as pipelines. It filters only inactive objects, isolates the three independent listings, preserves live entities after a partial listing, and can add pipeline status and lineage through mapped data objects. The Salesforce org must use its My Domain for OAuth access.
  • Fivetran represents each connection as a pipeline with Extract, Process, and Load tasks. Status can come from a warehouse log or the Fivetran API. Lineage resolves database tables or messaging topics and adds column mappings when both sides resolve uniquely.
  • Domo represents data flows as pipelines and maps run states to pipeline status. It treats an explicit failed flag as authoritative when the provider sends an unfamiliar state.
  • Tableau Prep represents flows with input, processing, and output tasks. It also represents extract refreshes as pipelines. Flow lineage connects the assets a flow reads to the assets it writes, while refresh lineage points to the dashboard data models that the refresh updates. Partial flow or refresh listings prevent stale deletion.

Data 360 pipeline lineage links data streams, lake objects, model objects, calculated insights, and transforms. Tableau flow lineage can defer flow-to-flow edges until all pipelines exist. Fivetran avoids edges when table resolution is missing, ambiguous, or self-referencing.

References: ingestion/…/auth.py• L30-117 ingestion/…/connection.py• L73-142 ingestion/…/connection.py• L153-225 ingestion/…/connection.py• L266-399 ingestion/…/metadata.py• L213-278 ingestion/…/metadata.py• L404-473 ingestion/…/metadata.py• L1234-1501 ingestion/…/base.py• L80-241 ingestion/…/connection.py• L43-126 ingestion/…/lineage.py• L86-121 ingestion/…/lineage.py• L633-679 ingestion/…/operational.py• L63-203 ingestion/…/metadata.py• L166-237 ingestion/…/metadata.py• L394-566 ingestion/…/metadata.py• L56-71 ingestion/…/metadata.py• L136-193 ingestion/…/client.py• L232-259 ingestion/…/client.py• L358-499 ingestion/…/metadata.py• L350-446 ingestion/…/metadata.py• L496-563

Messaging and storage connectors

Messaging connectors expose broker topics as catalog entities. They can add schema fields, topic settings, bounded sample messages, and lineage. Sample work is optional and is also subject to the global sample-data policy.

NATS uses the JetStream API to list topics and can read schemas from a configured key-value bucket. Its connection checks the broker and the selected JetStream resources before extraction. It supports token, user/password, and NKey authentication, with TLS client material kept only for the connection lifetime.

Storage connectors expose object-store paths as nested containers. A container can represent a bucket, directory, file, structured data set, or archive member. Metadata can come from a global manifest, a per-bucket openmetadata.json file, or a configured default manifest. Structured paths can infer columns from a sample. Archives can expose their inner files as child containers. Unstructured paths can still produce file and folder entities.

References: ingestion/…/messaging_service.py• L73-117 ingestion/…/connection.py• L91-159 ingestion/…/connection.py• L162-213 ingestion/…/storage_service.py• L117-156 ingestion/…/metadata.py• L109-201 ingestion/…/metadata.py• L261-321 ingestion/…/metadata.py• L402-485

Drive and AI connectors

Drive connectors map file systems to services, directories, files, spreadsheets, and worksheets. The shared shape supports nested directories, files with or without a directory, and spreadsheet children.

MCP connectors catalog Model Context Protocol servers for AI governance. They can discover server definitions from Claude Desktop or VS Code configuration and can connect to a configured server over SSE or Streamable HTTP. The source records server capabilities, tools, resources, prompts, and protocol errors without making one failed server remove other servers. Local process transport is rejected by the client and must be wrapped by an HTTP service.

ML model connectors represent models and their storage details as catalog assets. Search connectors represent search indexes and index templates and can add mappings, settings, samples, and templates. Security connectors establish the security service boundary and leave provider-specific child records to supported extensions.

References: ingestion/…/drive_service.py• L71-149 ingestion/…/client.py• L176-244 ingestion/…/metadata.py• L171-260 ingestion/…/mlmodel_service.py• L65-103 ingestion/…/search_service.py• L68-120 ingestion/…/security_service.py• L51-127

Catalog import and export connectors

Catalog import connectors bring records from another metadata or security system into OpenMetadata. They use the same typed requests and sink as live service connectors, but their source model is an existing catalog graph rather than a database or dashboard API.

Catalog export connectors read entities from OpenMetadata and write them to another catalog. They still follow source identity, batching, target-job status, and object-level error rules. A successful HTTP request is not enough when the target processes schema or column writes as background jobs.

References: ingestion/…/metadata.py• L118-167 ingestion/…/metadata.py• L71-145 ingestion/…/client.py• L111-266 ingestion/…/metadata.py• L114-172

Configuration patterns

Connector configuration has two linked contracts. The service connection says how to reach the external system. sourceConfig says what to read and how the result may change the catalog. The workflow schema selects the typed source configuration and rejects unknown fields before extraction.

Connection and source settings

Connection settings control access. Source settings control scope, output, and update policy. This separation lets one access model support several ingestion modes without placing source behavior in credentials.

Setting groupPurposeExamples
AccessReach and authenticate to the system.Endpoint, credentials, cloud region, TLS, API mode, or HTTP transport
ScopeSelect source objects.Database, schema, project, dashboard, topic, directory, graph label, index, or search pattern
OutputSelect metadata to collect.Tables, tags, samples, usage, lineage, metrics, JSON children, status, or index templates
Catalog policyControl updates to existing entities.Metadata overwrite, lineage overwrite, deletion marking, or incremental work
Run shapeControl source work.Threads, lookback period, parser, page size, sample size, or service limits
ManifestDescribe file paths and data shape.Structure format, partitions, glob paths, exclusions, or sample rules

Provider settings can select an API path, an authentication mode, a cloud tunnel, a query-history table, a broker schema store, or an HTTP protocol transport. Tableau supports basic auth, personal access tokens, and connected apps. MicroStrategy separates the server root from its Library application path. Data 360 requires the Salesforce My Domain for its OAuth flow. NATS separates broker auth from TLS. OpenLineage broker settings also define the Kafka security mode, Kinesis stream access, or NATS durable consumer and delivery behavior. Airflow can refresh JWT or cloud tokens while a run is active.

Filters can match raw names or FQNs when the source supports FQN filtering. Include flags can remove whole output groups. Deletion flags normally mean soft delete for entities that the source previously exposed but no longer returns. Artifact and manifest sources must report invalid entries without hiding valid entries. Incremental settings change discovery scope while preserving the entity contract.

References: openmetadata-spec/…/workflow.json• L7-87 openmetadata-spec/…/databaseServiceMetadataPipeline.json• L45-176 openmetadata-spec/…/dashboardServiceMetadataPipeline.json• L17-124 openmetadata-spec/…/pipelineServiceMetadataPipeline.json• L15-113 ingestion/…/connection.py• L275-319 ingestion/…/client.py• L131-200 ingestion/…/connection.py• L60-83 ingestion/…/connection.py• L135-157 ingestion/…/connection.py• L73-142 ingestion/…/connection.py• L266-399 ingestion/…/auth.py• L52-117

Source modes

One service can support several kinds of ingestion. Metadata mode builds catalog entities. Lineage mode builds relationships. Usage mode reads activity. Profiling, sampling, tests, data diff, metrics, and dbt modes add focused work with their own source settings and output.

The source type and pipeline configuration select the mode. A service specification registers only the modes that the service supports. This keeps each job's contract small instead of giving one job a large set of unrelated settings.

References: ingestion/…/service_spec.py• L121-145 ingestion/…/parser.py• L176-190 openmetadata-spec/…/workflow.json• L13-83 ingestion/…/usage_source.py• L35-95 ingestion/…/lineage_processors.py• L344-405

Service specification pattern

A service specification is the extension point for a supported connector. It binds a service family to the classes that provide metadata and optional work. The family base supplies shared behavior, so most specifications declare only the parts that the service supports.

Specification entryRole
metadata_source_classMain source for catalog metadata
lineage_source_classOptional lineage source
usage_source_classOptional usage source
connection_classClient creation, checks, and cleanup owner
Supporting source entriesOptional profiler, sampler, test-suite, or data-diff work

The connection class is the preferred lifecycle owner. Legacy module-level functions remain for connectors that have not moved. A new connector must keep its source mode, connection owner, and configuration type aligned so the selected job resolves to the intended source.

References: ingestion/…/service_spec.py• L36-75 ingestion/…/service_spec.py• L148-199 ingestion/…/connections.py• L41-137 ingestion/…/service_spec.py• L1-15 ingestion/…/service_spec.py• L11-19

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep the source type, source configuration schema, parser map, service specification, and generated models aligned. A connector is not usable if one boundary rejects its type.
  • Keep mode suffixes aligned with the service specification. A missing lineage, usage, metric, or query source can resolve a valid job to the wrong source.
  • Keep the connection schema, connection owner, test path, timeout behavior, and close path aligned. A client that is not closed can leak sessions, transports, consumers, or staged files.
  • Keep topology consumers and context keys aligned with FQN rules. A hierarchy change can create valid entities under the wrong parent.
  • Keep parent writes ahead of dependent records. API collections, data models, pipelines, and metric parents must exist before dependent records or relationships are sent.
  • Keep REST sink dispatch aligned with every request type a source can yield. Extraction can appear successful until a new metric, side record, patch, or lineage request reaches the sink.
  • Keep filter, include, deletion, overwrite, lineage-override, incremental, metric, and custom-property settings aligned between schema and source behavior. An accepted but ignored setting silently changes catalog state.
  • Keep paged source discovery complete before deletion checks. Empty, capped, permission-limited, repeated, or failed listings must not remove healthy entities.
  • Keep source-specific identity rules aligned with existing catalog FQNs. BigQuery shard families, dbt catalog mappings, OpenLineage symlinks, dashboard IDs, report pages, file paths, topic names, and pipeline task names must resolve to the same entities across runs.
  • Keep MicroStrategy Library paths, login modes, project scoping, dossier paging, dossier-qualified chart names, dataset names, column matching, and partial-read state aligned. A changed dossier identity can create duplicates or make a failed read look like deletion.
  • Keep Tableau REST and Metadata API access aligned with the service connection's auth scopes and API version. Flow task names, extract-refresh target IDs, dashboard data-model IDs, and partial-listing flags must remain compatible across the dashboard and pipeline connectors.
  • Keep Data 360 object-family listings, My Domain validation, service mappings, pipeline names, inactive filtering, status timestamps, and lineage table names aligned. A failed family read must not drive deletion or leave lineage without its database service.
  • Keep BigQuery project scope, regional metadata queries, incremental changes, shard identity, policy-tag cache scope, and table FQNs aligned. A changed project or location must not reuse metadata from another dataset.
  • Keep database type, view, partition, stored-procedure, synonym, identifier-case, and constraint rules aligned with each provider's catalog. Optional enrichment failures must not remove base entities.
  • Keep Oracle version fallbacks and per-object view reads separate from bulk listing state. One long or protected view must not hide the rest of a schema.
  • Keep Snowflake access-history fallback, time windows, semantic-view opt-in, external-stage path matching, and container resolution aligned. Missing access-history grants must not remove lineage or attach a stage to the wrong container.
  • Keep NATS auth, TLS temporary files, JetStream subjects, and schema bucket checks aligned. Reserved client options must not override the configured connection. For OpenLineage over NATS, keep the durable consumer name, subject filter, offsets, acknowledgement timing, redelivery limit, and keep-alive behavior aligned so separate services do not consume each other's events and slow runs do not cause duplicate delivery.
  • Keep Tableau pipeline flow and extract-refresh listing state aligned with task, status, lineage, and deletion stages. A partial listing must not delete pipelines, and task names must remain stable for status rows.
  • Keep Fivetran resolution scope and column mappings aligned with database and messaging services. An ambiguous or self-referencing match must not create a false edge.
  • Keep GCS manifests, archive child paths, inferred schemas, container parents, and source URLs aligned. A failed archive or sample read must not break other buckets.
  • Keep MCP transport mapping aligned between configuration discovery, protocol initialization, capability reads, and catalog fields. A configured local process must not be reported as an HTTP-connected server.

Important failure modes

TriggerConsequenceGuard
A source type, configuration type, or service specification entry is missing.Validation or dynamic import fails before extraction.Register the type in the schema and parser maps and provide the selected source and connection classes.
A child stage uses the wrong parent context or a dependent record is sent first.The server rejects the record or stores an entity under the wrong FQN.Treat topology context, sink barriers, and family hierarchy as one contract.
A source listing is partial while deletion marking is enabled.Existing entities can be soft-deleted even though they still exist.Reconcile deletions only after complete and trusted discovery.
MicroStrategy search, dossier definitions, or existing chart reads are incomplete.Dashboards, charts, or data models can appear absent in the run.Preserve known entities and skip stale deletion for the incomplete scope.
MicroStrategy chart keys are treated as globally unique.A chart from one dossier can overwrite or link to a chart from another dossier.Include dossier identity in the stable chart name.
MicroStrategy cube SQL or schema objects cannot be read.Table or column lineage is incomplete.Keep dashboard and data-model metadata independent from optional lineage and skip only unsupported column edges.
BigQuery shard inventory finds conflicting physical and logical identities.The connector cannot know which catalog object is authoritative.Mark the scope incomplete and require operator resolution.
A database provider's optional catalog read fails.Tables can lose comments, partitions, types, constraints, or view lineage.Isolate enrichment and keep the base table or view request.
Oracle bulk view reads hit a long-value or privilege limit.All view definitions can look unreadable.Fall back to one-view-at-a-time reads and isolate failures per object.
Snowflake access-history is unavailable or an external stage has no matching container.Query or stage lineage is missing.Fall back to query history and require a resolved storage container.
Tableau's Metadata API is disabled or returns a partial flow.Flows remain cataloged without new lineage, and task shape can be incomplete.Keep stored tasks, report the failure, and do not reconcile a partial listing as complete.
Data 360 returns a failed or partial page for one pipeline object family.Pipelines from that family can be marked deleted or omitted from lineage.Mark the listing incomplete and skip stale deletion for the run.
Airflow or GCP credentials expire during a long run.Later API calls fail with authentication errors.Use the token callback that refreshes JWT or OAuth credentials.
NATS credentials, TLS material, or JetStream access are invalid.Topic or schema discovery fails before metadata extraction.Run access and schema-bucket checks and remove temporary TLS files at close.
An OpenLineage NATS durable consumer already exists with another subject filter.The connector could read events for a different service or fail to bind to the stream.Use a separate durable name or correct the existing consumer before the run.
An OpenLineage NATS batch takes longer than its acknowledgement window.Events can be redelivered while lineage is still being written.Refresh pending acknowledgements during slow batch processing and acknowledge each event only after it is handed to the ingestion flow.
Fivetran resolves several tables or resolves an edge to the same entity.Lineage can attach to the wrong asset or create a self-edge.Require a unique match and skip ambiguous or self-referencing edges.
GCS schema inference or archive reading fails.One structured path loses its model or its archive children.Isolate the path and continue with other containers and buckets.
MCP uses an unsupported transport or fails protocol initialization.Server capabilities are not read and the server is cataloged with an error.Use SSE or Streamable HTTP with a URL and complete the handshake before capability reads.

Key files

FileWhy to read it
ingestion/…/steps.pyDefines the source and sink contracts.
ingestion/…/topology.pyDefines nodes, stages, context, and parent identity.
ingestion/…/topology_runner.pyShows how a topology becomes sink records and post-process work.
ingestion/…/service_spec.pyDefines connector manifests and source-mode resolution.
ingestion/…/connections.pyConnects service settings to client creation, checks, and cleanup.
ingestion/…/metadata_rest.pyShows typed request dispatch, bulk writes, barriers, and errors.
ingestion/…/common_db_source.pyShows shared database discovery, table requests, filters, constraints, and cleanup.
ingestion/…/dashboard_service.pyDefines the shared dashboard, chart, and data-model flow.
ingestion/…/client.pyShows Library authentication, paged search, cube reads, and partial-read state.
ingestion/…/column_lineage.pyShows how cube SQL becomes safe column-level lineage.
ingestion/…/metadata.pyShows dossier, chart, data-model, lineage, and safe deletion mapping.
ingestion/…/client.pyShows secure WebSocket discovery and data-model fallback behavior.
ingestion/…/client.pyShows Tableau workbook, view, Metadata API, and source-table access.
ingestion/…/connection.pyShows Tableau auth modes, access checks, scopes, and cleanup.
ingestion/…/metadata.pyShows multi-project discovery, incremental work, shard families, regional reads, and policy tags.
ingestion/…/client.pyShows paged Data 360 reads and incomplete-list protection.
ingestion/…/metadata.pyShows file-backed database entities and first-chunk schema inference.
ingestion/…/metadata.pyShows provider-specific table types, columns, partitions, and definitions.
ingestion/…/resolution.pyShows Doris internal-catalog identity resolution.
ingestion/…/metadata.pyShows multi-database discovery, partitions, and distribution keys.
ingestion/…/metadata.pyShows indexed views, stored procedures, synonyms, and optional descriptions.
ingestion/…/utils.pyShows Oracle version fallbacks, case handling, view reads, and constraints.
ingestion/…/lineage.pyShows bounded access-history lineage, fallback behavior, semantic views, and external stages.
ingestion/…/metadata.pyShows StarRocks table kinds, complex types, partitions, and comments.
ingestion/…/connection.pyShows NATS auth, TLS, JetStream checks, and client cleanup.
ingestion/…/connection.pyShows Kafka, Kinesis, and NATS broker setup, delivery checks, durable consumers, and resource cleanup.
ingestion/…/metadata.pyShows OpenLineage event intake, dataset and topic resolution, broker polling, acknowledgement behavior, and lineage output.
ingestion/…/auth.pyShows Airflow and GCP token refresh contracts.
ingestion/…/base.pyShows Data 360 pipeline discovery and safe deletion.
ingestion/…/lineage.pyShows Data 360 source mapping and pipeline lineage.
ingestion/…/operational.pyShows Data 360 run-status mapping.
ingestion/…/metadata.pyShows pipeline tasks, status sources, entity resolution, and column lineage.
ingestion/…/metadata.pyShows Domo pipeline and run-status mapping.
ingestion/…/client.pyShows Tableau Prep and extract-refresh discovery, paging, retries, and partial-listing state.
ingestion/…/metadata.pyShows Tableau tasks, statuses, asset lineage, refresh lineage, and deferred flow edges.
ingestion/…/metadata.pyShows GCS bucket, manifest, archive, structured, and unstructured container mapping.
openmetadata-spec/…/workflow.jsonDefines the workflow connection and source configuration boundary.