Skip to content

Conversation

@jesspav
Copy link
Collaborator

@jesspav jesspav commented Nov 21, 2025

#296

Rename aggregate functions to all end in _agg

 SELECT st_analyze_agg(ST_GeomFromText('POINT (100 100)'));
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│                                                            st_analyze_agg(st_geomfromwkt(Utf8("POINT (100 100)")))                                                            │
│                                                                                     struct                                                                                    │
╞═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╡
│ {count: 1, minx: 100.0, miny: 100.0, maxx: 100.0, maxy: 100.0, mean_size_in_bytes: 21, mean_points_per_geometry: 1.0, puntal_count: 1, lineal_count: 0, polygonal_count: 0, … │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

> SELECT st_collect_agg(ST_GeomFromText('POINT (100 100)'));
┌─────────────────────────────────────────────────────────┐
│ st_collect_agg(st_geomfromwkt(Utf8("POINT (100 100)"))) │
│                         geometry                        │
╞═════════════════════════════════════════════════════════╡
│ MULTIPOINT((100 100))                                   │
└─────────────────────────────────────────────────────────┘


> SELECT st_envelope_agg(ST_GeomFromText('POINT (100 100)'));
┌──────────────────────────────────────────────────────────┐
│ st_envelope_agg(st_geomfromwkt(Utf8("POINT (100 100)"))) │
│                         geometry                         │
╞══════════════════════════════════════════════════════════╡
│ POINT(100 100)                                           │
└──────────────────────────────────────────────────────────┘

> SELECT st_intersection_agg(ST_GeomFromText('POINT (100 100)'));
┌──────────────────────────────────────────────────────────────┐
│ st_intersection_agg(st_geomfromwkt(Utf8("POINT (100 100)"))) │
│                           geometry                           │
╞══════════════════════════════════════════════════════════════╡
│                                                              │
└──────────────────────────────────────────────────────────────┘

> SELECT st_union_agg(ST_GeomFromText('POINT (100 100)'));
┌───────────────────────────────────────────────────────┐
│ st_union_agg(st_geomfromwkt(Utf8("POINT (100 100)"))) │
│                        geometry                       │
╞═══════════════════════════════════════════════════════╡
│                                                       │
└───────────────────────────────────────────────────────┘

@jesspav jesspav marked this pull request as ready for review November 21, 2025 19:43
@jesspav jesspav requested a review from paleolimbot November 21, 2025 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant