feat(assets): create assets for dbt models#231
Draft
fdelbrayelle wants to merge 1 commit intomainfrom
Draft
Conversation
Contributor
🧪 Java Unit Tests
📦 Artifacts
🔁 Unreleased Commits2 commits since
|
f9d0793 to
0a4815e
Compare
0a4815e to
2d6ab07
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes https://github.com/kestra-io/kestra-ee/issues/6473
What changes are being made and why?
Upsert assets as tables by parsing the manifest file and handle lineages through the "depends on".
How the changes have been QAed?
Checked basic assets with this flow:
Results:
Which leads to 3 assets in the
assetstable of Kestra:[ { "key": "fde_memory.main.example_three", "value": {"id": "memory.main.example_three", "name": "example_three", "type": "io.kestra.plugin.ee.assets.Table", "schema": "main", "system": "duckdb", "created": "2026-02-02T15:49:00.753088Z", "deleted": false, "updated": "2026-02-02T15:49:00.873185Z", "database": "memory", "metadata": {"name": "example_three", "schema": "main", "system": "duckdb", "database": "memory"}, "tenantId": "fde"}, "tenant_id": "fde", "namespace": null, "id": "memory.main.example_three", "type": "io.kestra.plugin.ee.assets.Table", "display_name": null, "created": "2026-02-02 15:49:00.753088 +00:00", "updated": "2026-02-02 15:49:00.873185 +00:00", "deleted": false, "fulltext": null }, { "key": "fde_memory.main.example", "value": {"id": "memory.main.example", "name": "example", "type": "io.kestra.plugin.ee.assets.Table", "schema": "main", "system": "duckdb", "created": "2026-02-02T15:49:00.753096Z", "deleted": false, "updated": "2026-02-02T15:49:00.885007Z", "database": "memory", "metadata": {"name": "example", "schema": "main", "system": "duckdb", "database": "memory"}, "tenantId": "fde"}, "tenant_id": "fde", "namespace": null, "id": "memory.main.example", "type": "io.kestra.plugin.ee.assets.Table", "display_name": null, "created": "2026-02-02 15:49:00.753096 +00:00", "updated": "2026-02-02 15:49:00.885007 +00:00", "deleted": false, "fulltext": null }, { "key": "fde_memory.main.example_two", "value": {"id": "memory.main.example_two", "name": "example_two", "type": "io.kestra.plugin.ee.assets.Table", "schema": "main", "system": "duckdb", "created": "2026-02-02T15:49:00.753101Z", "deleted": false, "updated": "2026-02-02T15:49:00.895062Z", "database": "memory", "metadata": {"name": "example_two", "schema": "main", "system": "duckdb", "database": "memory"}, "tenantId": "fde"}, "tenant_id": "fde", "namespace": null, "id": "memory.main.example_two", "type": "io.kestra.plugin.ee.assets.Table", "display_name": null, "created": "2026-02-02 15:49:00.753101 +00:00", "updated": "2026-02-02 15:49:00.895062 +00:00", "deleted": false, "fulltext": null } ]Second example flow to check the lineage:
Results:
Which leads to 3 assets with lineage in the
assets_lineage_eventstable of Kestra:[ { "key": "1PSncPPjkJEcpmTImYQanT", "value": {"uid": "1PSncPPjkJEcpmTImYQanT", "state": "SUCCESS", "flowId": "dbt_cli_assets_lineage_test", "inputs": [], "taskId": "dbt_build", "created": "2026-02-02T15:52:14.041424Z", "endDate": "2026-02-02T15:52:13.942231Z", "outputs": [{"id": "memory.main.example_base", "type": "io.kestra.plugin.ee.assets.Table", "tenantId": "fde"}, {"id": "memory.main.example_three", "type": "io.kestra.plugin.ee.assets.Table", "tenantId": "fde"}, {"id": "memory.main.example_two", "type": "io.kestra.plugin.ee.assets.Table", "tenantId": "fde"}], "tenantId": "fde", "namespace": "company.team", "startDate": "2026-02-02T15:52:02.957498Z", "taskRunId": "2cKEhiYR8dVdWtvHlKy3Rx", "executionId": "67XPdrJYENHYxOk2B3ljHW", "flowRevision": 2}, "tenant_id": "fde", "namespace": "company.team", "flow_id": "dbt_cli_assets_lineage_test", "flow_revision": 2, "execution_id": "67XPdrJYENHYxOk2B3ljHW", "task_id": "dbt_build", "task_run_id": "2cKEhiYR8dVdWtvHlKy3Rx", "created": "2026-02-02 15:52:14.041424 +00:00" } ]Setup Instructions
Contributor Checklist ✅