r/dataengineering • • Nov 17 '25

Help Asking for help with SQLMesh (I could pay T.T)

[deleted] — view deleted post

5 Upvotes

6 comments sorted by

15

u/darkcoffy Nov 17 '25 edited Nov 17 '25

This is the way sqlmesh works, all tables are created as views that point to the underlying physical table. This allows for the zero copy virtual environments. Read up about them on the docs.

Move over to pure dbt if you want them to be tables all the time

2

u/geo-dude Nov 17 '25

Agreed - this is by design and a fundamental feature of sqlmesh.

It may be possible to disable the view created for the FULL table by using the virtual_environment_mode: dev_only config, which would only materialise the physical table in the production environment (no view), where no versioning history is kept.

2

u/Otherwise-Baker7668 Nov 17 '25

Oh, get it, and how can I update those views when information is modified?, thank you very much. I was pretty sure that I was doing something wrong

2

u/geo-dude Nov 17 '25

When you do a sqlmesh run, a FULL model will have it's data fully refreshed at specified cron intervals. If no cron is specified, the default will be daily.

If you have a schema change (not just changed data), you need to do a sqlmesh plan for it to deploy the schema change and refresh the model data too.

1

u/Otherwise-Baker7668 Nov 18 '25

Thank you very much!