Skip to content

statement: support GIS indexes/types#825

Merged
morgo merged 2 commits into
block:mainfrom
morgo:mtocker-geometry
May 7, 2026
Merged

statement: support GIS indexes/types#825
morgo merged 2 commits into
block:mainfrom
morgo:mtocker-geometry

Conversation

@morgo
Copy link
Copy Markdown
Collaborator

@morgo morgo commented May 7, 2026

A Pull Request should be associated with an Issue.

We wish to have discussions in Issues. A single issue may be targeted by multiple PRs.
If you're offering a new feature or fixing anything, we'd like to know beforehand in Issues,
and potentially we'll be able to point development in a particular direction.
Further notes in https://github.com/block/spirit/blob/main/.github/CONTRIBUTING.md

Handles followup case from #687

morgo and others added 2 commits May 6, 2026 17:04
…ryIndexes

- parseIndex: map ConstraintSpatial to Type="SPATIAL"
- GetMissingSecondaryIndexes: include SPATIAL in the filter and emit
  ADD SPATIAL INDEX in the generated ALTER
- lint/redundant_indexes: recognize SPATIAL so it's classified
  consistently rather than silently dropped
- Tests: parse a SPATIAL index and assert Type=SPATIAL; diff a missing
  SPATIAL index and assert ADD SPATIAL INDEX comes back

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@morgo morgo merged commit 94b2883 into block:main May 7, 2026
11 of 13 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