Re:SQL Needed Structure
by mccanne on Saturday September 06, 2025 @12:38PM
(#45150752)
For sure... the use of JSON here seems orthogonal to Jamie's point of constructing complex nested values in SQL with a single backend query. Modern SQLs support all this as native types (presuming the result can fit in a homogeneous relational type, which it can in this case), e.g., Jamie's query can be written with a record expression (duckdb dialect):
And if you query typeof on the result, you'll get:
[ Parent
| on HN ]
There are no comments on this comment yet.