Area: Ingestion Issues
Sub-Area: Matillion DPC Connector Configuration
Applies to: OSS + Cloud
Issue
Your Matillion DPC (matillion-dpc) ingestion run finishes without errors, but DataHub shows only a few of your Matillion pipelines, or none at all.
You Might Be Asking
- Why does my Matillion DPC ingestion succeed but bring in few or no pipelines?
- Is
environment_patternscase-sensitive? - What does
include_unpublished_pipelineschange? - How do I see which environments and pipelines the connector filtered out?
- What credentials does the Matillion DPC recipe need?
Cause
Three things decide which batch pipelines reach DataHub.
- The time window. With the default
include_unpublished_pipelines: true, the connector finds batch pipelines from the Matillion pipeline executions that started betweenstart_timeandend_time. If you don't set them,end_timeis now andstart_timeis 00:00 UTC on the previous day. A pipeline that did not run in that window is not ingested, even if it is published. - The filters.
project_patterns,environment_patternsandpipeline_patternsare regex allow and deny lists. They ignore case by default (ignoreCase: true), soPROD-STABLEmatches an environment namedprod-stable. Each pattern matches from the start of the name, soprodalso matchesproduction. Use^prod-stable$for an exact match. With the defaultinclude_unpublished_pipelines: true, the connector checkspipeline_patternsagainst the pipeline file name with the folder path and file extension removed. For example,ingest/orders/load.orch.yamlbecomesload. A pattern that contains a folder path, such asSOURCE_MAPPINGS/SALESFORCE/.*, then matches no pipelines. - An old CLI version. Early releases of the connector emitted no batch pipelines when
include_unpublished_pipelineswasfalse. They fetched the published pipelines and then dropped them.
Solution
-
Check what the connector filtered out. Open the run's output and find the source report.
filtered_projects,filtered_environmentsandfiltered_pipelineslist the exact names the connector compared and skipped.pipelines_emittedcounts the batch pipelines it wrote. Compare the skipped names with your patterns. -
Fix your patterns. Remove
ignoreCase: falseunless you need case to matter. Anchor a pattern with^and$when you want one exact name. Don't put folder paths inpipeline_patternswhileinclude_unpublished_pipelinesistrue.
environment_patterns:
allow:
- "^prod-stable$"
- Widen the time window, or ingest published pipelines directly. If your pipelines don't run every day, set
start_timefurther back (see Time Window and Incremental Ingestion).
start_time: "-30d"
The connector does not save its position between runs. Every run reads the whole window from start_time to end_time again, so a wide window makes every run slower. Turning on stateful_ingestion does not change this.
You can also set include_unpublished_pipelines: false. The connector then ingests every published pipeline in your allowed environments, whether or not it ran in the window. It skips pipelines that ran but are not published. In this mode the connector emits no run history unless you also set extract_run_history: true.
- Be careful with stateful ingestion. For this connector,
stateful_ingestionturns on stale entity removal, andremove_stale_metadataistrueby default. At the end of a run, DataHub soft deletes the pipelines that were in the previous run but not in this one. Withinclude_unpublished_pipelines: true, a pipeline that did not run inside the current window is not in the run, so DataHub soft deletes it. If you turn onstateful_ingestion, either setinclude_unpublished_pipelines: falseso every published pipeline is in each run, or setremove_stale_metadata: false:
stateful_ingestion:
enabled: true
remove_stale_metadata: false
-
Use the latest CLI. In the ingestion source, open Advanced and set CLI Version to the latest
acryl-datahubrelease. Don't pin an old version. Older releases have theinclude_unpublished_pipelines: falsebug described above. If your DataHub version does not list Matillion as a source, choose Other ("Configure a custom recipe using YAML"), paste the recipe below, and set CLI Version to the latest release. -
Use the right recipe structure. Credentials go under
api_configas a Matillion OAuth2 client ID and client secret. The connector rejects unknown keys, sobase_url,usernameandpasswordfail validation.regionisEU1(default),US1orAU1. For a VPC endpoint, setcustom_base_urlandcustom_oauth_token_urlinapi_configinstead.
source:
type: matillion-dpc
config:
api_config:
client_id: "${MATILLION_CLIENT_ID}"
client_secret: "${MATILLION_CLIENT_SECRET}"
region: "US1"
start_time: "-30d"
environment_patterns:
allow:
- "^prod-stable$"
When you run this recipe with the datahub CLI rather than from the DataHub UI, add a datahub-rest sink with your server URL and token.