You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WITH RECURSIVE
input(sud) AS (
VALUES('53..7....6..195....98....6.8...6...34..8.3..17...2...6.6....28....419..5....8..79')
),
digits(z, lp) AS (
SELECT CAST(lp+1ASTEXT), lp::int+1FROM range(0,9) t(lp)
),
x(s, ind) AS (
SELECT sud, instr(sud, '.') FROM input
UNION ALLSELECT
substr(s, 1, ind::int-1) || z || substr(s, ind::int+1),
instr( substr(s, 1, ind::int-1) || z || substr(s, ind::int+1), '.' )
FROM x, digits AS z
WHERE ind::int>0AND NOT EXISTS (
SELECT1FROM digits AS lp
WHEREz.z= substr(s, ((ind::int-1)/9)*9+ lp, 1)
ORz.z= substr(s, ((ind::int-1)%9) + (lp-1)*9+1, 1)
ORz.z= substr(s, (((ind::int-1)/3) % 3) *3+ ((ind::int-1)/27) *27+ lp
+ ((lp-1) /3) *6, 1)
)
)
SELECT s FROM x WHERE ind::int=0;
---run in v0.3.0 46a0fc50a /v0.3.1 88aa81c6b
│ 5346789126721953481983425678597614234268537917139248569615372842874196353452861... │
---run in v0.3.2-dev173 a73d33c14 /v0.3.2-dev330 ae8562793
Error: Binder Error: No function matches the given name and argument types 'struct_extract(VARCHAR, VARCHAR)'. You might need to add explicit type cas
ts.
Candidate functions:
struct_extract(STRUCT, VARCHAR) -> ANY
Environment (please complete the following information):
What happens?
reports struct_extract error when run a sql in duckdb v0.3.2dev, that sql can run in v0.3.0 and v0.3.1 correctly
seems related with #2554
To Reproduce
Environment (please complete the following information):
Before Submitting
master
branch?pip install duckdb --upgrade --pre
install.packages("https://github.com/duckdb/duckdb/releases/download/master-builds/duckdb_r_src.tar.gz", repos = NULL)
The text was updated successfully, but these errors were encountered: