adamant-van-21355
07/13/2022, 7:51 AMstateful ingestion
feature on DBT. Once we enable the stateful configuration we got the following stack-trace (in thread) with an assertion error, while metadata is ingested successfully. This is happening either on top of an old DBT ingestion config or on a new one after enabling the stateful ingestion with "remove_stale_metadata": True
. I would appreciate any clues on how we can make this work properly so any stale metadata is removed on future ingestion runs 🙏
...
"pipeline_name": "my-dbt-pipeline",
...
"stateful_ingestion": {
"enabled": True,
"remove_stale_metadata": True
},
...
adamant-van-21355
07/13/2022, 7:52 AMignore_old_state
and ignore_new_state
? because this is not clear from the docsadamant-van-21355
07/13/2022, 7:52 AMTraceback (most recent call last):
File "./scripts/extract_dbt_metadata_files.py", line 108, in <module>
ingest_dbt_metadata(mart_name=mart)
File "./scripts/extract_dbt_metadata_files.py", line 82, in ingest_dbt_metadata
pipeline.run()
File "/home/projects/datahub/.venv/lib/python3.8/site-packages/datahub/ingestion/run/pipeline.py", line 215, in run
for wu in itertools.islice(
File "/home/projects/datahub/.venv/lib/python3.8/site-packages/datahub/ingestion/source/dbt.py", line 1368, in get_workunits
yield from self.create_test_entity_mcps(
File "/home/projects/datahub/.venv/lib/python3.8/site-packages/datahub/ingestion/source/dbt.py", line 1138, in create_test_entity_mcps
self.save_checkpoint(node_datahub_urn)
File "/home/projects/datahub/.venv/lib/python3.8/site-packages/datahub/ingestion/source/dbt.py", line 1525, in save_checkpoint
checkpoint_state.add_table_urn(node_datahub_urn)
File "/home/projects/datahub/.venv/lib/python3.8/site-packages/datahub/ingestion/source/state/sql_common_state.py", line 86, in add_table_urn
self.encoded_table_urns.append(self._get_lightweight_repr(table_urn))
File "/home/projects/datahub/.venv/lib/python3.8/site-packages/datahub/ingestion/source/state/sql_common_state.py", line 35, in _get_lightweight_repr
assert key is not None
AssertionError
loud-island-88694
witty-butcher-82399
07/15/2022, 1:50 PMcareful-pilot-86309
07/15/2022, 1:55 PMquick-pizza-8906
07/15/2022, 2:13 PMquick-pizza-8906
07/15/2022, 2:13 PMcareful-pilot-86309
07/15/2022, 2:16 PMadamant-van-21355
08/01/2022, 2:06 PMstateful-ingestion
still getting the above AssertionError not being able to make the stateful ingestion to work.
Is that fixed under the latest release?
Using version 0.8.41
but still getting the same AssertionError
with the stateful_ingestion enabled.
Would appreciate a solid reply from someone on this please 🙏 since making the stateful-ingestion to work for the DBT source is an absolutely crucial topic and game-changer for us (and many here I guess). Big thanks beforehand and happy to provide more input/details on our case if neededcareful-pilot-86309
08/01/2022, 2:13 PMgentle-hamburger-31302
08/01/2022, 5:29 PMadamant-van-21355
08/01/2022, 5:31 PMhelpful-optician-78938
08/01/2022, 8:38 PMgentle-hamburger-31302
08/02/2022, 10:39 AM