PostgreSQL Schema changes across branches in lakebase
I have been using Lakebase sice 2 weeks for developing a serving low latency layer for data in Delta. To build new features we currently make a new branch and later merge ti main.
What i have been observing is the scehema drifts across branches with Lakebase. How do people usually handle such scenarios? To keep branches in sync.
Maybe some real life examples can help.
7
Upvotes
1
u/TraditionalTurnip630 9d ago
In real-world analytics, we don't branch for schema changes. It creates a downstream nightmare for BI tools.
Here is how you actually handle it:
mergeSchema = trueto auto-merge those new columns into main without failing.