Skip to content

Remove BinaryFunc::RangeContainsElem in favor of typed variants#34950

Merged
antiguru merged 2 commits intoMaterializeInc:mainfrom
antiguru:binary_func_range_contains
Feb 9, 2026
Merged

Remove BinaryFunc::RangeContainsElem in favor of typed variants#34950
antiguru merged 2 commits intoMaterializeInc:mainfrom
antiguru:binary_func_range_contains

Conversation

@antiguru
Copy link
Member

@antiguru antiguru commented Feb 9, 2026

Summary

  • Replace the generic RangeContainsElem { elem_type, rev } variant with the existing typed sqlfunc variants (RangeContainsI32, RangeContainsDate, etc.)
  • The typed variants were already defined via #[sqlfunc] but not wired up as BinaryFunc enum variants
  • The caller in src/sql/src/func.rs now dispatches to the correct typed variant based on the element type

🤖 Generated with Claude Code

@antiguru antiguru force-pushed the binary_func_range_contains branch 2 times, most recently from 48674d7 to 177641b Compare February 9, 2026 14:24
@antiguru antiguru requested a review from ggevay February 9, 2026 14:44
@antiguru antiguru marked this pull request as ready for review February 9, 2026 14:44
@antiguru antiguru requested review from a team as code owners February 9, 2026 14:44
Replace the generic RangeContainsElem { elem_type, rev } variant with
the existing typed sqlfunc variants (RangeContainsI32, RangeContainsDate,
etc.) that were already defined but not wired up as BinaryFunc enum
variants. The caller in src/sql/src/func.rs now dispatches to the
correct typed variant based on the element type.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Moritz Hoffmann <antiguru@gmail.com>
@antiguru antiguru force-pushed the binary_func_range_contains branch from 5e1e972 to 33012e5 Compare February 9, 2026 18:13
@MaterializeInc MaterializeInc deleted a comment from ggevay Feb 9, 2026
@MaterializeInc MaterializeInc deleted a comment from ggevay Feb 9, 2026
Signed-off-by: Moritz Hoffmann <antiguru@gmail.com>
@antiguru antiguru force-pushed the binary_func_range_contains branch from 33012e5 to 47d3e62 Compare February 9, 2026 18:14
@antiguru antiguru merged commit e7ee2a0 into MaterializeInc:main Feb 9, 2026
133 checks passed
@antiguru antiguru deleted the binary_func_range_contains branch February 9, 2026 18:30
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.

2 participants