Skip to content

Commit bc2309b

Browse files
rustyconoverclaude
andcommitted
Add Param/ConstParam/Returns API for scalar functions
Introduces a new annotation-based API for defining scalar function parameters: - Param(type, doc) for columnar inputs (arrays from batch) - ConstParam(type, doc) for constant-folded scalars - Returns(type) for declaring output type Also adds runtime type validation for the new API: - TypeMismatchError raised when input/output types don't match declarations - AnyArrow parameters skip validation - Legacy Arg descriptor API continues to work without type checking Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9c16757 commit bc2309b

6 files changed

Lines changed: 1412 additions & 77 deletions

File tree

0 commit comments

Comments
 (0)