Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with dbt sync: database field could not be null #240

Open
mishga98 opened this issue Sep 7, 2023 · 1 comment
Open

Problem with dbt sync: database field could not be null #240

mishga98 opened this issue Sep 7, 2023 · 1 comment

Comments

@mishga98
Copy link

mishga98 commented Sep 7, 2023

Have a good day!
I faced the following problem during my attempts to sync with dbt project.
What command I use: superset-cli -u admin -p admin http://localhost:8088 sync dbt-core dbt_project.yml
What result I got:
Traceback (most recent call last): File "/home/folder/.local/bin/superset-cli", line 8, in <module> sys.exit(superset_cli()) File "/home/folder.local/lib/python3.9/site-packages/click/core.py", line 1157, in __call__ return self.main(*args, **kwargs) File "/home/folder/.local/lib/python3.9/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) File "/home/folder/.local/lib/python3.9/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/folder/.local/lib/python3.9/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/folder/.local/lib/python3.9/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/folder/.local/lib/python3.9/site-packages/click/core.py", line 783, in invoke return __callback(*args, **kwargs) File "/home/folder/.local/lib/python3.9/site-packages/click/decorators.py", line 33, in new_func return f(get_current_context(), *args, **kwargs) File "/home/folder/.local/lib/python3.9/site-packages/preset_cli/cli/superset/sync/dbt/command.py", line 154, in dbt_core models.append(model_schema.load(config)) File "/home/folder/.local/lib/python3.9/site-packages/marshmallow/schema.py", line 722, in load return self._do_load( File "/home/folder/.local/lib/python3.9/site-packages/marshmallow/schema.py", line 909, in _do_load raise exc marshmallow.exceptions.ValidationError: {'database': ['Field may not be null.']}
Probably I have some mistakes in my model, but I already tried different parameters and specifying database too, I guess it is not the cause.
I use 2.1.1 superset version. Please, help me!

@Vitor-Avila
Copy link
Contributor

Hey @mishga98,

Could you confirm if you're still impacted by this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants