514-labs / moose

The developer framework for your data & analytics stack
https://www.moosejs.com
MIT License
20 stars 4 forks source link

Clean up existing aggregations mv on startup #1122

Closed DatGuyJonathan closed 3 weeks ago

linear[bot] commented 3 weeks ago

514-912 Allow deleting materialized views in prod

vercel[bot] commented 3 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
company-landing ✅ Ready (Inspect) Visit Preview Apr 26, 2024 7:36pm
framework-docs ✅ Ready (Inspect) Visit Preview Apr 26, 2024 7:36pm
framework-landing ✅ Ready (Inspect) Visit Preview Apr 26, 2024 7:36pm
moose-product-analytics ✅ Ready (Inspect) Visit Preview Apr 26, 2024 7:36pm
callicles commented 3 weeks ago

Is this only for dev mode?

DatGuyJonathan commented 3 weeks ago

Is this only for dev mode?

No, I was thinking this is needed for prod as well. Currently, versions are specified in these aggregation functions. If they want to update versions, we'd need to delete the mv and recreate them. They also need a way to delete an aggregation file locally, push that change, and deploy, and that mv should be deleted in prod.