Skip to content

Convert BinaryFunc::Normalize to use #[sqlfunc] macro#34952

Merged
antiguru merged 1 commit intoMaterializeInc:mainfrom
antiguru:binary_func_normalize
Feb 9, 2026
Merged

Convert BinaryFunc::Normalize to use #[sqlfunc] macro#34952
antiguru merged 1 commit intoMaterializeInc:mainfrom
antiguru:binary_func_normalize

Conversation

@antiguru
Copy link
Member

@antiguru antiguru commented Feb 9, 2026

Summary

  • Convert the Normalize unit variant to use the standard #[sqlfunc] pattern
  • The macro generates the Normalize struct implementing EagerBinaryFunc with typed arguments (&str, &str) instead of raw Datum values

🤖 Generated with Claude Code

@antiguru antiguru force-pushed the binary_func_normalize branch from d05a8ac to 2897ad4 Compare February 9, 2026 14:38
@antiguru antiguru requested a review from ggevay February 9, 2026 14:45
@antiguru antiguru marked this pull request as ready for review February 9, 2026 14:45
@antiguru antiguru requested review from a team as code owners February 9, 2026 14:45
@antiguru antiguru force-pushed the binary_func_normalize branch from 2897ad4 to fbd8ef3 Compare February 9, 2026 18:27
Convert the Normalize unit variant to use the standard #[sqlfunc]
pattern with typed arguments instead of raw Datum values. Remove the
old normalize_with_form helper from impls/string.rs.

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_normalize branch from fbd8ef3 to 513a858 Compare February 9, 2026 18:37
@antiguru antiguru enabled auto-merge (squash) February 9, 2026 18:38
@antiguru antiguru merged commit 9e64526 into MaterializeInc:main Feb 9, 2026
133 checks passed
@antiguru antiguru deleted the binary_func_normalize branch February 9, 2026 19:53
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