[BUG] Using ephemeral
materialization causes all tables to have all null records
#33
Open
1 of 4 tasks
Labels
type:wontfix
This will not be worked on
Is there an existing issue for this?
Describe the issue
Due to #32, I'm considering
ephemeral
as the materialization type for netsuite_source, so that I can then create my own staging schema that has all of the tables my connector is bringing in.The only alternatives I can think of is to try to put them in the same schema, which would cause name conflicts, or to have two staging schemas for the same source, which will be confusing for everyone. Since nobody will directly use the staging models from netsuite_source anyway, I figure it's ok to abstract / hide them away in ephemeral models.
When I try to do this, all fields for all records for all models are null. When I look in my
target
folder, I can see the generated SQL is explicitly usingnull
as the value for everything.Is there a way I can use ephemeral as the materialization for netsuite_source?
Relevant error log or model output
target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__transaction_lines.sql:
Expected behavior
I would expect the CTEs to use the actual fields rather than nulls.
dbt Project configurations
Package versions
What database are you using dbt with?
snowflake 7.12.3
dbt Version
Additional Context
If I switch
materialized
toview
then it all works great.I'm using Python 3.10.10.
Are you willing to open a PR to help address this issue?
The text was updated successfully, but these errors were encountered: