Skip to content

Fix PARTITION BY bug for spatial projections#479

Merged
teunbrand merged 4 commits into
posit-dev:mainfrom
teunbrand:spatial_partition_bug
Jun 16, 2026
Merged

Fix PARTITION BY bug for spatial projections#479
teunbrand merged 4 commits into
posit-dev:mainfrom
teunbrand:spatial_partition_bug

Conversation

@teunbrand

Copy link
Copy Markdown
Collaborator

I forgot to include the PARTITION BY columns in the projection code, so when actually using them they wouldn't be found.
This PR fixes that oversight.

teunbrand and others added 4 commits June 16, 2026 10:20
project_position_columns and the spatial materialization path built
explicit SELECT lists from only aesthetic columns, dropping any
PARTITION BY columns from the output. Include partition_by in the
column set via a new util::set_union helper.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Regression test: verifies that PARTITION BY columns survive the
densification and projection transform pipeline for non-spatial
layers with map projections.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@teunbrand teunbrand requested a review from thomasp85 June 16, 2026 10:15

@thomasp85 thomasp85 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@teunbrand teunbrand merged commit 8a212f1 into posit-dev:main Jun 16, 2026
2 checks passed
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.

2 participants