forked from catherinedevlin/ipython-sql
-
Notifications
You must be signed in to change notification settings - Fork 83
Closed
Description
What happens?
RuntimeError: (sqlalchemy.exc.InvalidRequestError) A value is required for bind parameter '1'
[SQL: select json('[{"a"?}, {"b"?}]')]
but when run in the duckdb cli the result is:
❯ duckdb
v0.9.2 3c695d7ba9
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
D select json('[{"a":1}, {"b":2}]');
┌────────────────────────────┐
│ json('[{"a":1}, {"b":2}]') │
│ json │
├────────────────────────────┤
│ [{"a":1},{"b":2}] │
└────────────────────────────┘
To Reproduce
%load_ext sql
%config SqlMagic.feedback = False
%config SqlMagic.displaycon = False
%config SqlMagic.autopandas = True
%sql duckdb:///:memory:
%sql select json('[{"a":1}, {"b":2}]')
OS:
macos
JupySQL Version:
0.10.7
Full Name:
Oliver Mannion
Affiliation:
Xero
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels