Comments (1)
This should be fixed as a side result of #10150. I get the following output on the current main
branch.
Error: Binder Error: failed to bind function, either: Invalid LIST argument during lambda function binding!
or: Referenced column "x" not found in FROM clause!
Basically, we try to bind this query twice, and both attempts fail. The error message now includes the failure-reason of the first attempt, which is Invalid LIST argument during lambda function binding!
. This is the expected error message, as ::JSON AS xs
is not a LIST
.
tania@motorbook duckdb % build/release/duckdb
v0.9.3-dev3936 b92cb1ae39
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
D SELECT '[{"x":1}]'::JSON AS xs, list_transform(xs, x -> x);
Error: Binder Error: failed to bind function, either: Invalid LIST argument during lambda function binding!
or: Referenced column "x" not found in FROM clause!
D SELECT '[{"x":1}]'::JSON;
┌─────────────────────────────┐
│ CAST('[{"x":1}]' AS "JSON") │
│ json │
├─────────────────────────────┤
│ [{"x":1}] │
└─────────────────────────────┘
D SELECT '[{"x":1}]'::JSON AS xs, list_transform(xs::JSON[], x -> x);
┌───────────┬────────────────────────────────────────────────┐
│ xs │ list_transform(CAST(xs AS "JSON"[]), (x -> x)) │
│ json │ json[] │
├───────────┼────────────────────────────────────────────────┤
│ [{"x":1}] │ [{"x":1}] │
└───────────┴────────────────────────────────────────────────┘
D SELECT '[{"x":1}]'::JSON[] AS xs, list_transform(xs, x -> x);
┌───────────┬──────────────────────────────┐
│ xs │ list_transform(xs, (x -> x)) │
│ json[] │ json[] │
├───────────┼──────────────────────────────┤
│ [{"x":1}] │ [{"x":1}] │
└───────────┴──────────────────────────────┘
I am closing this, as it has already been fixed.
from duckdb.
Related Issues (20)
- Assertion failure when using DISTINCT ON + ORDER BY with JSON column (NodeJS)
- UT8 Decode Error Instead of 'Directory Not Found' HOT 5
- Memory usage increases 100x when using row instead of column majorness in input
- TRUNCATE <TABLE > Uses excessive amount of RAM HOT 4
- duckdb "crashes" when unnest(), COUNT, UNION ALL and OFFSET are used together HOT 1
- Failed to write to table XYZ with error: INTERNAL Error: Could not find node in column segment tree! Attempting to find row number "18980" in 0 nodes with exception type: 31 HOT 1
- read_csv does not automatically detect dates in format '%b %-d, %Y'.
- python process terminates after an HTTP error HOT 1
- Slow performance when simulating matrix multiplication in SQL HOT 9
- Segmentation fault when computing a recursive query over a CSV. HOT 2
- Assertion trigger in `duckdb_appender_destroy` when multi-thread append data in debug mode HOT 3
- Postgres_execute not available on latest duckdb installation (v0.10.1) HOT 2
- Tmp folder with block files is being created when trying to export/run queries (8M rows) HOT 2
- Builtins least() and greatest() do not respect order of ENUM values HOT 6
- Lambda argument resolution in alter table
- Ungraceful Handling of Apache Arrow `ArrowNotImplementedError` with `timestamp` Datatype HOT 2
- Cant build library on Swinft in Windows HOT 1
- Issue with where condition on COLUMNS Expression HOT 4
- UB when persisting nested data
- Calculating the absolute value of a REAL type results in a higher precision number than argument. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from duckdb.