-
Notifications
You must be signed in to change notification settings - Fork 13
MotherDuck connection does not workΒ #55
Copy link
Copy link
Open
Description
issue summary
lea's prepare and run commands fail to work properly with MotherDuck connections, but they work with standard DuckDB connections (for the same views).
environment
- lea version: 0.5.0
- Database: MotherDuck (v1.1.2)
- Python version: 3.12
- Views: Using example view from jaffle_shop
observed behavior
-
schema creation (
lea prepare)- Commands appear successful but schema isn't created on md:
$ lea prepare [13:30:35] Created schema staging duckdb.py:55 $ lea prepare --production [13:30:41] Created schema staging duckdb.py:55
-
view creation (
lea run)- Development mode fails with syntax error (same model works on DuckDB):
$ lea run [13:30:46] 1 out of 1 views selected runner.py:74 # view status duration cost 1 staging.raw_payments ERRORED 0s Took 0s runner.py:74 βββββββββββ³ββββββββ β status β count β β‘ββββββββββββββββββ© β ERRORED β 1 β βββββββββββ΄ββββββββ staging.raw_payments Parser Error: syntax error at or near ":"
- Production mode reports success but no view is created on md:
$ lea run --production [13:30:55] 1 out of 1 views selected runner.py:74 # view status duration cost 1 staging.raw_payments SUCCESS 0s Took 0s runner.py:74 βββββββββββ³ββββββββ β status β count β β‘ββββββββββββββββββ© β SUCCESS β 1 β βββββββββββ΄ββββββββ
Expected Behavior
- Schema and views should be created in MotherDuck as indicated by the command output
additional information
- I've set up my env as such:
LEA_USERNAME=<my_name>
LEA_WAREHOUSE=duckdb
LEA_DUCKDB_PATH=md:<my_db>
MOTHERDUCK_TOKEN=<my_token>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels