Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion tools/codegen_duck_udfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,15 @@ def ret_type(f, out_canon):
# name whose family token it knows, so an unlisted family rides in on a name
# whose OTHER token happens to be unregistered, and emits the moment that one
# registers. tposechain_to_tpose was rejected only for naming the then-
# unregistered tpose, and reached the compiler as soon as tpose registered.
# unregistered tpose, and reached the compiler once tpose registered.
#
# The S2 cell index family, whose DuckDB type the binding does not register.
# Naming it is what lets the gate reject its functions: `tbigint_to_ts2cell`
# carries a REGISTERED token too, so without the family here the gate reads it
# as a tbigint function, emits a call to a symbol no included MEOS header
# declares, and registers `ts2cell(tbigint)` as returning tbigint — the operand
# type standing in for the one the generator cannot name.
"ts2cell", "s2cell",
}
def unregistered_family_ref(name):
"""The first unregistered family token the name references, else None (in scope)."""
Expand Down
Loading