Skip to content

Commit addb72d

Browse files
authored
Merge pull request #3584 from szarnyasg/nits-20240909g
Improve formatting of blog post
2 parents 5627771 + 37155e6 commit addb72d

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ GIT
1010

1111
GIT
1212
remote: https://github.com/duckdb/rouge.git
13-
revision: 94d6b62ab86a734fca31e4407dfafa013d19c0a1
13+
revision: e09fb64ac1d2b08001c012b96f2e03185f80ca7c
1414
branch: duckdb
1515
specs:
1616
rouge (3.3823.1)

_posts/2024-09-09-announcing-duckdb-110.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ SELECT ARRAY(SELECT unnest(range(10))) AS subquery_result;
9898
The `scalar_subquery_error_on_multiple_rows` setting can be set to `false` to revert this behavior.
9999

100100
```sql
101-
SET scalar_subquery_error_on_multiple_rows=false;
102-
SELECT (SELECT unnest(range(10))) as result;
101+
SET scalar_subquery_error_on_multiple_rows = false;
102+
SELECT (SELECT unnest(range(10))) AS result;
103103
```
104104
```text
105105
┌────────┐
@@ -402,19 +402,22 @@ INSTALL spatial;
402402
LOAD spatial;
403403

404404
-- Create a table with 10_000_000 random points
405-
CREATE TABLE t1 AS SELECT point::GEOMETRY as geom
405+
CREATE TABLE t1 AS SELECT point::GEOMETRY AS geom
406406
FROM st_generatepoints(
407407
{min_x: 0, min_y: 0, max_x: 10_000, max_y: 10_000}::BOX_2D,
408408
10_000_000,
409409
1337
410410
);
411411

412-
-- Create an index on the table.
412+
-- Create an index on the table
413413
CREATE INDEX my_idx ON t1 USING RTREE (geom);
414414

415-
-- Perform a query with a "spatial predicate" on the indexed geometry column
416-
-- Note how the second argument in this case, the ST_MakeEnvelope call is a "constant"
417-
SELECT count(*) FROM t1 WHERE ST_Within(geom, ST_MakeEnvelope(450, 450, 650, 650));
415+
-- Perform a query with a "spatial predicate" on the indexed geometry
416+
-- column. Note how the second argument in this case,
417+
-- the ST_MakeEnvelope call is a "constant"
418+
SELECT count(*)
419+
FROM t1
420+
WHERE ST_Within(geom, ST_MakeEnvelope(450, 450, 650, 650));
418421
```
419422

420423
```text

0 commit comments

Comments
 (0)