Repository navigation
Read as raster types only the structs whose reader answers a SQL type - #99
Merged
estebanzimanyi merged 1 commit intoNov 21, 2026
Merged
Conversation
The generator reads the raster types from the structs of the raster family, each struct naming the function that reads its text form, whose SQL signature answers the type. MobilityDB's catalog gives BandStats a text form, read by bandstats_in, which carries no SQL signature: BandStats is the summarystats record PostGIS defines, which a function answers and no column holds. Such a struct is no raster type and is passed over; a struct whose reader the catalog does not declare at all still stops the generator. Witness: run on the catalog of MobilityDB master 8bd3b60c28, the generator writes 2 raster types, raster and raquet, the set MobilityDB's tools/raster_matrix.py names, and catalog_gen.go and mathops_meos_gen.go are byte-identical to the committed ones. Measured: on MobilityAPI master f7de535, CI stops at the generator with "the struct BandStats reads its text form with bandstats_in, which states no SQL signature answering a type", against the catalog of MobilityDB master that carries the BandStats text form.
estebanzimanyi
deleted the
fix/codegen-raster-types-skip-record-structs
branch
November 21, 2026 18:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The generator reads the raster types from the structs of the raster
family, each struct naming the function that reads its text form, whose
SQL signature answers the type. MobilityDB's catalog gives BandStats a
text form, read by bandstats_in, which carries no SQL signature:
BandStats is the summarystats record PostGIS defines, which a function
answers and no column holds. Such a struct is no raster type and is
passed over; a struct whose reader the catalog does not declare at all
still stops the generator.
Witness: run on the catalog of MobilityDB master 8bd3b60c28, the
generator writes 2 raster types, raster and raquet, the set MobilityDB's
tools/raster_matrix.py names, and catalog_gen.go and mathops_meos_gen.go
are byte-identical to the committed ones.
Measured: on MobilityAPI master f7de535, CI stops at the generator with
"the struct BandStats reads its text form with bandstats_in, which
states no SQL signature answering a type", against the catalog of
MobilityDB master that carries the BandStats text form.