sqlmesh plan --restate-model
requires model files to be present
#3260
Labels
Improvement
Improves existing functionality
Hi!
Since v0.119.0
sqlmesh run
does not require any model definitions in themodels/
to refresh model data.While clearing some confusion I had about
sqlmesh plan --restate-model
's behavior, it was pointed out to me that it should only refresh data, but not update models' definitions (like a regular plan would).So I expected that a restatement should also not require the definitions, if it only refreshes data. But when testing the behavior it does not seem to be the case.
repro
setup
t.sh
-- helper scriptI believe a restatement shouldn't require model definitions in order to only refresh data, similar to
run
.Defining a dummy
full_model
makes it work:And the original model definition is not replaced by the dummy that was introduced, as expected:
Am I misguided here?
Thanks in advance.
For completeness sake, to demonstrate that
sqlmesh run
behaves like this since v0.119:The text was updated successfully, but these errors were encountered: