Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions addons/models/6000-Trino/6000-trino_model.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
"relationshipCategory": "AGGREGATION",
"propagateTags": "NONE",
"endDef1": { "type": "trino_table", "name": "trinoschema", "isContainer": false, "cardinality": "SINGLE", "isLegacyAttribute": false },
"endDef2": { "type": "trino_schema", "name": "tables", "isContainer": true, "cardinality": "SET" }
"endDef2": { "type": "trino_schema", "name": "tables", "isContainer": true, "cardinality": "SET", "propagateDelete": true }
},
{
"name": "trino_table_columns",
Expand Down Expand Up @@ -172,7 +172,7 @@
"typeVersion": "1.0",
"relationshipCategory": "ASSOCIATION",
"propagateTags": "BOTH",
"endDef1": { "type": "hive_db", "name": "trino_schema", "cardinality": "SET" },
"endDef1": { "type": "hive_db", "name": "trino_schema", "cardinality": "SET", "propagateDelete": true },

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't there should be a patch for this, since atlas-2.5 is already released?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes are specific to the delete propagation. The earlier rename-related patch that was merged did not include these changes. This PR adds the required patch for the delete propagation functionality as well.

"endDef2": { "type": "trino_schema", "name": "hive_db", "cardinality": "SINGLE" }
},
{
Expand All @@ -181,7 +181,7 @@
"typeVersion": "1.0",
"relationshipCategory": "ASSOCIATION",
"propagateTags": "BOTH",
"endDef1": { "type": "hive_table", "name": "trino_table", "cardinality": "SET", "propagateRename": true, "propagateAttributes": [ { "source": "name", "target": "name" } ] },
"endDef1": { "type": "hive_table", "name": "trino_table", "cardinality": "SET", "propagateRename": true, "propagateDelete": true, "propagateAttributes": [ { "source": "name", "target": "name" } ] },
"endDef2": { "type": "trino_table", "name": "hive_table", "cardinality": "SINGLE" }
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"patches": [
{
"id": "TYPEDEF_PATCH_6000_002_A",
"description": "Set propagateDelete=true on trino_table_hive_table endDef1 (hive_table → trino_table)",
"action": "SET_PROPAGATE_DELETE",
"typeName": "trino_table_hive_table",
"applyToVersion": "1.1",
"updateToVersion": "1.2",
"params": {
"endDefToken": "endDef1"
}
},
{
"id": "TYPEDEF_PATCH_6000_002_B",
"description": "Set propagateDelete=true on trino_schema_hive_db endDef1 (hive_db → trino_schema)",
"action": "SET_PROPAGATE_DELETE",
"typeName": "trino_schema_hive_db",
"applyToVersion": "1.0",
"updateToVersion": "1.1",
"params": {
"endDefToken": "endDef1"
}
},
{
"id": "TYPEDEF_PATCH_6000_002_C",
"description": "Set propagateDelete=true on trino_table_schema endDef2 (trino_schema → trino_table)",
"action": "SET_PROPAGATE_DELETE",
"typeName": "trino_table_schema",
"applyToVersion": "1.0",
"updateToVersion": "1.1",
"params": {
"endDefToken": "endDef2"
}
}
]
}
200 changes: 0 additions & 200 deletions docs/src/documents/RenamePropagation.md

This file was deleted.

Loading
Loading