When re-running a model (in this case materialising as a view) subsequent to the first time, the code is failing within the "fabric__rename_relation" macro (in include/fabric/macros/adapters/relation.sql) at the sp_rename call. This is because the view already exists. I can get around it by putting pre-hook of
pre_hook = ['USE oracleJM_DW'
,'DROP VIEW IF EXISTS bronze.bronze_erp_aging_period_header'
]
for every model, but it's far from ideal!
Incidentally, in my case i'm reading from the lakehouse analytics endpoint and materialising in the DW (if that matters)
for the time being i've got my own copy of the macro that's overriding the default.
@itsalljustdata , I modified view materialization in 1.7.3. I am releasing this today. Could you try again after later today and see if you are still seeing this issue?
When re-running a model (in this case materialising as a view) subsequent to the first time, the code is failing within the "fabric__rename_relation" macro (in include/fabric/macros/adapters/relation.sql) at the sp_rename call. This is because the view already exists. I can get around it by putting pre-hook of
for every model, but it's far from ideal!
Incidentally, in my case i'm reading from the lakehouse analytics endpoint and materialising in the DW (if that matters)
for the time being i've got my own copy of the macro that's overriding the default.
It seems that this bug crept in during the "simplifications" as part of the v.1.6.1 release