You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dbt seed fails when multiple schemas are configured where not all af them contain seed nodes. For each target database not containing seeds, it prints the following error:
Glue adapter: An error occurred (EntityNotFoundException) when calling the GetTables operation: Database <database name> not found.
Steps To Reproduce
Execute dbt seed command on a project where not all used schemas contain seed nodes.
Expected behavior
Selected seed nodes are pushed as tables to the glue catalog.
Screenshots and log output
10:39:08 Glue adapter: An error occurred (EntityNotFoundException) when calling the GetTables operation: Database <database name> not found.
10:39:08
10:39:08 Finished running in 0 hours 0 minutes and 1.75 seconds (1.75s).
10:39:08 Encountered an error:
'NoneType' object is not iterable
10:39:08 Traceback (most recent call last):
File "/home/jsanjuan/samples/test_dbt_project/.venv/lib/python3.10/site-packages/dbt/cli/requires.py", line 153, in wrapper
result, success = func(*args, **kwargs)
File "/home/jsanjuan/samples/test_dbt_project/.venv/lib/python3.10/site-packages/dbt/cli/requires.py", line 103, in wrapper
return func(*args, **kwargs)
File "/home/jsanjuan/samples/test_dbt_project/.venv/lib/python3.10/site-packages/dbt/cli/requires.py", line 235, in wrapper
return func(*args, **kwargs)
File "/home/jsanjuan/samples/test_dbt_project/.venv/lib/python3.10/site-packages/dbt/cli/requires.py", line 264, in wrapper
return func(*args, **kwargs)
File "/home/jsanjuan/samples/test_dbt_project/.venv/lib/python3.10/site-packages/dbt/cli/requires.py", line 311, in wrapper
return func(*args, **kwargs)
File "/home/jsanjuan/samples/test_dbt_project/.venv/lib/python3.10/site-packages/dbt/cli/requires.py", line 328, in wrapper
return func(*args, **kwargs)
File "/home/jsanjuan/samples/test_dbt_project/.venv/lib/python3.10/site-packages/dbt/cli/main.py", line 710, in seed
results = task.run()
File "/home/jsanjuan/samples/test_dbt_project/.venv/lib/python3.10/site-packages/dbt/task/runnable.py", line 588, in run
result = self.execute_with_hooks(selected_uids)
File "/home/jsanjuan/samples/test_dbt_project/.venv/lib/python3.10/site-packages/dbt/task/runnable.py", line 526, in execute_with_hooks
before_run_status = self.before_run(adapter, selected_uids)
File "/home/jsanjuan/samples/test_dbt_project/.venv/lib/python3.10/site-packages/dbt/task/run.py", line 995, in before_run
self.populate_adapter_cache(adapter, required_schemas)
File "/home/jsanjuan/samples/test_dbt_project/.venv/lib/python3.10/site-packages/dbt/task/runnable.py", line 492, in populate_adapter_cache
adapter.set_relations_cache(cachable_nodes)
File "/home/jsanjuan/samples/test_dbt_project/.venv/lib/python3.10/site-packages/dbt/adapters/base/impl.py", line 572, in set_relations_cache
self._relations_cache_for_schemas(relation_configs, required_schemas)
File "/home/jsanjuan/samples/test_dbt_project/.venv/lib/python3.10/site-packages/dbt/adapters/base/impl.py", line 548, in _relations_cache_for_schemas
for relation in future.result():
TypeError: 'NoneType' object is not iterable
System information
The output of dbt --version:
Core:
- installed: 1.9.2
- latest: 1.9.2 - Up to date!
Plugins:
- spark: 1.9.0 - Update available!
- glue: 1.9.0 - Up to date!
The operating system you're using:
Ubuntu 22.04
The output of python --version:
Python 3.10.12
Additional context
Root cause is related to list_relations_without_caching method from the adapter not returning appropiate result when listing relations of non existing databases.
The text was updated successfully, but these errors were encountered:
Describe the bug
dbt seed
fails when multiple schemas are configured where not all af them contain seed nodes. For each target database not containing seeds, it prints the following error:Steps To Reproduce
Execute
dbt seed
command on a project where not all used schemas contain seed nodes.Expected behavior
Selected seed nodes are pushed as tables to the glue catalog.
Screenshots and log output
System information
The output of
dbt --version
:The operating system you're using:
Ubuntu 22.04
The output of
python --version
:Python 3.10.12
Additional context
Root cause is related to
list_relations_without_caching
method from the adapter not returning appropiate result when listing relations of non existing databases.The text was updated successfully, but these errors were encountered: