Smol bug for the postgres adapter to Motherduck.
Smol bug for the postgres adapter to Motherduck. Running following query:
SELECT
(SELECT min_ts_sess FROM min_max_cte) AS minTs,
(SELECT max_ts_sess FROM min_max_cte) AS maxTs,
(SELECT coalesce(list(bars_cte), []) FROM bars_cte) AS bars,Returns:
bars: string (instead of an array)Expect:
bars: [{time: "...", open: 123.45, close: 5678.89}, ...]With the duckdb driver, calling object_agg, array_agg, list e.t.c returns a nested object. Using PG endpoint returns the objects converted to json strings instead of native objects and arrays.
.png)