From 62a9f54ad9cc7f20563493983e6ddfc9eec7c0b1 Mon Sep 17 00:00:00 2001 From: Gabor Szarnyas Date: Mon, 9 Sep 2024 17:22:58 +0200 Subject: [PATCH] Blog post formatting --- _posts/2024-09-09-announcing-duckdb-110.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/_posts/2024-09-09-announcing-duckdb-110.md b/_posts/2024-09-09-announcing-duckdb-110.md index 59a24838165..0e45d629af4 100644 --- a/_posts/2024-09-09-announcing-duckdb-110.md +++ b/_posts/2024-09-09-announcing-duckdb-110.md @@ -75,9 +75,17 @@ SELECT 1 / 0 AS division_by_zero; ```sql SELECT (SELECT unnest(range(10))); --- More than one row returned by a subquery used as an expression - scalar subqueries can only return a single row. +``` + +```console +Invalid Input Error: More than one row returned by a subquery used as +an expression - scalar subqueries can only return a single row. +``` + +```sql SELECT ARRAY(SELECT unnest(range(10))) AS subquery_result; ``` + ```text ┌────────────────────────────────┐ │ subquery_result │ @@ -113,7 +121,11 @@ In this release, we have been working towards making community extensions easier [**Histogram.**](https://github.com/duckdb/duckdb/pull/12590) This version introduces the `histogram` function that can be used to compute histograms over columns of a dataset. The histogram function works for columns of any type, and allows for various different binning strategies and a custom amount of bins. ```sql -FROM histogram('https://blobs.duckdb.org/data/ontime.parquet', UniqueCarrier, bin_count := 5); +FROM histogram( + 'https://blobs.duckdb.org/data/ontime.parquet', + UniqueCarrier, + bin_count := 5 +); ``` ```text