chore: add make setup target for DuckDB initialization#4
Open
KristjanESPERANTO wants to merge 1 commit intomfdz:mainfrom
Open
chore: add make setup target for DuckDB initialization#4KristjanESPERANTO wants to merge 1 commit intomfdz:mainfrom
make setup target for DuckDB initialization#4KristjanESPERANTO wants to merge 1 commit intomfdz:mainfrom
Conversation
hbruch
reviewed
Feb 16, 2026
Member
hbruch
left a comment
There was a problem hiding this comment.
Hm, that's strange. I expected sqlmesh to handle the install implicitly as spatial is defined as extension in config.yaml. Let me check this out...
- Add explicit duckdb dependency to requirements.txt - Add setup_duckdb.py script to install spatial extension - Add setup target to Makefile - Update README with setup instructions Fixes spatial extension error on first run.
3dcdd35 to
3aa95c1
Compare
Contributor
Author
|
Maybe I'm doing something wrong, I've never had anything to do with DuckDB before. I just resolved the merge conflict. |
make setup target for DuckDB initialization
Member
|
Another explanation might be that on my system, it was semi initialized before. I'll try to reproduce. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
I tried running this repo and hit an error on first
make compare:The DuckDB spatial extension needs to be installed manually but wasn't documented or automated. This PR fixes that.
Changes
make setuptarget to install Python dependenciesdb_$(COUNTRY).dbtarget to automatically install DuckDB spatial extension before running SQLMeshscripts/setup_duckdb.pyto automate spatial extension installationduckdb>=1.0.0dependency to requirements.txtThe spatial extension is now automatically installed when creating the database, no manual intervention needed.
Usage