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
If you define a model materialisation strategy to materialized='table' then it creates the table in the object_storage_source at the object_storage_path and a corresponding view in the dremio_space. The creation of the view fails if the model's schema is configured as a subfolder and that subfolder does not already exist.
It is possible to work around this bug by creating another dummy model in the same schema with materialisation strategy materialized='view'.
Expected Behavior
The view created by the materialized='table' strategy should create the subfolder if it does not exist already.
Steps To Reproduce
Create a simple model to materialize as a table in a subfolder:
{{ config(materialized='table', schema='foo.bar') }}
select1as a
Execute
dbt run
Observe error:
10:48:03 ERROR: NamespaceNotFoundException: one or more elements on the path are not found in namespace: "<dremio_space>".foo.bar.baz
I can confirm that this bug exists and I have used the same workaround of creating a simple "init" view in the same space folder before materialising the table
As described by @fabrice-etanchaud in his comment (#192 (comment)), another workaround is to set the dbt-dremio connector's twin_strategy to either allow or prevent, instead of the default clone. This will stop dbt from attempting to create an additional view on top of the created table.
Is there an existing issue for this?
Current Behavior
If you define a model materialisation strategy to
materialized='table'
then it creates the table in theobject_storage_source
at theobject_storage_path
and a corresponding view in thedremio_space
. The creation of the view fails if the model'sschema
is configured as a subfolder and that subfolder does not already exist.It is possible to work around this bug by creating another dummy model in the same
schema
with materialisation strategymaterialized='view'
.Expected Behavior
The view created by the
materialized='table'
strategy should create the subfolder if it does not exist already.Steps To Reproduce
Create a simple model to materialize as a table in a subfolder:
Execute
Observe error:
Environment
Relevant log output
No response
The text was updated successfully, but these errors were encountered: