Skip to content

Generate the value-type hash and hashExtended surface - #243

Merged
estebanzimanyi merged 2 commits into
MobilityDB:mainfrom
estebanzimanyi:feat/duck-hashextended-valuetypes-v2
Jul 31, 2026
Merged

Generate the value-type hash and hashExtended surface#243
estebanzimanyi merged 2 commits into
MobilityDB:mainfrom
estebanzimanyi:feat/duck-hashextended-valuetypes-v2

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

The set, span and spanset hash and hashExtended functions are now
emitted by the generator as the bare overloaded hash() / hashExtended()
(with a UBIGINT seed), matching the MobilityDB SQL surface, instead of being
hand-registered under the type-prefixed set_hash / span_hash /
spanset_hash names.

A (container, by-value seed) -> scalar shape covers the extended variants
alongside the existing unary hash. The hand-written registrations, their
implementations and declarations are removed; the generated surface covers
them. The parity tests use the bare names.

The regenerated surface also reflects the bare hash names for the other
families, so the whole hash surface is the single overloaded hash /
hashExtended resolved by argument type.

estebanzimanyi and others added 2 commits July 31, 2026 13:51
The set, span and spanset hash and hashExtended functions are now emitted
by the generator as the bare overloaded hash() and hashExtended() (with a
UBIGINT seed), matching the MobilityDB SQL surface. A new
(container, by-value seed) -> scalar shape covers the extended variants
alongside the existing unary hash.

The hand-written set_hash/span_hash/spanset_hash registrations and their
_hash_extended variants, together with their implementations and
declarations, are removed; the generated surface now covers them. The
parity tests are updated to the bare names.
@estebanzimanyi
estebanzimanyi merged commit e98aad0 into MobilityDB:main Jul 31, 2026
9 checks passed
@estebanzimanyi
estebanzimanyi deleted the feat/duck-hashextended-valuetypes-v2 branch July 31, 2026 20:12
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