Skip to content

Register the split-span and inherited accessor names once, from the catalog - #354

Merged
estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:duck/catalog-underreg
Aug 29, 2026
Merged

Register the split-span and inherited accessor names once, from the catalog#354
estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:duck/catalog-underreg

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

The generator emits these names from the catalog for every type it declares
them over, so the hand registrations beside them add nothing: 55 of them
repeat a generated (name, argument types) pair exactly, and DuckDB keeps one
overload per signature, so the hand copy only decides which spelling
duckdb_functions() reports.

splitNspans and splitEachNspans go with them. MobilityDB declares
splitNSpans and splitEachNSpans, the catalog carries that spelling in sqlfn,
and the generator emits it; DuckDB resolves a function name without regard to
case, so splitnspans, splitNSpans and SPLITNSPANS all reach the same overload
and the lowercase registrations reach nothing the canonical one does not.

The registered surface is identical either way: duckdb_functions() reports the
same 11625 rows, and startInstant, endInstant, instantN, interp, tempSubtype,
intset, floatset, intspan, splitNSpans, lower, initcap and
nearestApproachDistance answer the same values.

…atalog

The generator emits these names from the catalog for every type it declares
them over, so the hand registrations beside them add nothing: 55 of them
repeat a generated (name, argument types) pair exactly, and DuckDB keeps one
overload per signature, so the hand copy only decides which spelling
duckdb_functions() reports.

splitNspans and splitEachNspans go with them. MobilityDB declares
splitNSpans and splitEachNSpans, the catalog carries that spelling in sqlfn,
and the generator emits it; DuckDB resolves a function name without regard to
case, so splitnspans, splitNSpans and SPLITNSPANS all reach the same overload
and the lowercase registrations reach nothing the canonical one does not.

The registered surface is identical either way: duckdb_functions() reports the
same 11625 rows, and startInstant, endInstant, instantN, interp, tempSubtype,
intset, floatset, intspan, splitNSpans, lower, initcap and
nearestApproachDistance answer the same values.
@estebanzimanyi
estebanzimanyi merged commit 39b9522 into MobilityDB:main Aug 29, 2026
10 checks passed
@estebanzimanyi
estebanzimanyi deleted the duck/catalog-underreg branch August 29, 2026 08:51
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