Area: Ingestion Issues
Sub-Area: Change Type Configuration
Applies to: OSS + Cloud
Issue
When you run Hive Metastore ingestion, the generated MCPs show "changeType": "PATCH" for datasetProperties instead of the UPSERT you expected. Your workflow expects full replacement of the aspect, not a merge.
You Might Be Asking
- How can I force UPSERT instead of PATCH for datasetProperties?
- Why do I see PATCH for datasetProperties in the hive-metastore source?
- What is the difference between PATCH and UPSERT?
Cause
The hive-metastore source has an option, enable_properties_merge, that defaults to true. When it is true, the source emits datasetProperties as a PATCH. The PATCH sets the display name and description and adds each custom property. It keeps properties that others wrote.
When it is false, the source emits a full DatasetProperties aspect (UPSERT). That replaces the whole aspect on every run.
Solution
- To get UPSERT, set
enable_properties_merge: falsein your Hive Metastore recipe:
source:
type: hive-metastore
config:
enable_properties_merge: false
# ... your existing config
- Lineage options are separate from this setting. If you don't need lineage, you can turn it off.
include_view_lineageandinclude_view_column_lineagedefault totrue.emit_storage_lineagedefaults tofalse.include_column_lineagedefaults totrueand only applies together withemit_storage_lineage.
source:
type: hive-metastore
config:
enable_properties_merge: false
include_view_lineage: false
include_view_column_lineage: false
# ... rest of your config
You don't need a datahub_api section. It is optional. If you leave it out, the pipeline builds its graph client from your sink. Add datahub_api only if you want to set the graph client explicitly.
Additional Notes
With enable_properties_merge: false, each run replaces the whole datasetProperties aspect. Custom properties that are not in the Hive source are removed on the next run. This includes properties added manually or by other ingestion jobs. If you rely on properties from several sources or on manual edits, keep the default PATCH behavior.
Related Documentation
Tags: patch, upsert, hive-metastore, change-type, cli, properties-merge, ingestion-configuration, datasetproperties, mcp