Skip to content

Conversation

@antiguru
Copy link
Member

@antiguru antiguru commented Feb 9, 2026

Replace the unit BinaryFunc variants TimezoneIntervalTimestamp, TimezoneIntervalTimestampTz, and TimezoneIntervalTime with tuple variants wrapping sqlfunc-generated structs. Remove the old Datum-based helper functions which are no longer needed.

This delegates all trait method implementations to the EagerBinaryFunc trait, reducing boilerplate and making the code consistent with other recently converted variants.

Summary

  • Add #[sqlfunc] functions timezone_interval_timestamp_binary, timezone_interval_timestamp_tz_binary, and timezone_interval_time_binary
  • Replace unit enum variants with tuple variants wrapping the generated structs
  • Update all match arms to delegate to the struct methods

@antiguru antiguru force-pushed the binary_func_timezone_interval branch from 7239d2a to d99c83b Compare February 9, 2026 15:04
@antiguru antiguru requested review from ggevay February 9, 2026 15:05
@antiguru antiguru marked this pull request as ready for review February 9, 2026 15:06
@antiguru antiguru requested review from a team as code owners February 9, 2026 15:06
@antiguru antiguru force-pushed the binary_func_timezone_interval branch from d99c83b to 1629a74 Compare February 9, 2026 15:40
@antiguru antiguru force-pushed the binary_func_timezone_interval branch from 1629a74 to 7c271b1 Compare February 9, 2026 18:44
Replace the unit BinaryFunc variants TimezoneIntervalTimestamp,
TimezoneIntervalTimestampTz, and TimezoneIntervalTime with tuple
variants wrapping sqlfunc-generated structs. Remove the old Datum-based
helper functions which are no longer needed.

This delegates all trait method implementations to the EagerBinaryFunc
trait, reducing boilerplate and making the code consistent with other
recently converted variants.

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_timezone_interval branch from 7c271b1 to 57039e4 Compare February 9, 2026 20:45
@antiguru antiguru enabled auto-merge (squash) February 9, 2026 20:46
@antiguru antiguru merged commit 44b0ca1 into MaterializeInc:main Feb 9, 2026
133 checks passed
@antiguru antiguru deleted the binary_func_timezone_interval branch February 9, 2026 21:15
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