Skip to content

Fix!: show proper pip install command when sqlmesh schema version is behind#1638

Merged
georgesittas merged 3 commits intomainfrom
jo/get_versions_ux_improvement
Oct 31, 2023
Merged

Fix!: show proper pip install command when sqlmesh schema version is behind#1638
georgesittas merged 3 commits intomainfrom
jo/get_versions_ux_improvement

Conversation

@georgesittas
Copy link
Contributor

@georgesittas georgesittas commented Oct 31, 2023

Current behavior:

Error: SQLMesh (local) is using version '30' which is behind '31' (remote). Please upgrade SQLMesh ('pip install --upgrade "sqlmesh==31"' command).

The suggested command is incorrect because we're interpolating versions.schema_version instead of the actual SQLMesh package version. To overcome this issue I added a new column sqlmesh_version to the _versions state table which is currently only used to improve the UX when an error message is raised.

@georgesittas georgesittas requested review from a team, izeigerman and tobymao October 31, 2023 02:34
@georgesittas georgesittas force-pushed the jo/get_versions_ux_improvement branch from bc8f092 to 97a3aaf Compare October 31, 2023 16:49
@georgesittas georgesittas force-pushed the jo/get_versions_ux_improvement branch from 97a3aaf to 5dfafe1 Compare October 31, 2023 17:50
@georgesittas georgesittas merged commit 1c6b2f9 into main Oct 31, 2023
@georgesittas georgesittas deleted the jo/get_versions_ux_improvement branch October 31, 2023 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants