Skip to content

Conversation

@antiguru
Copy link
Member

@antiguru antiguru commented Feb 9, 2026

Replace the unit BinaryFunc variants TimezoneTimestamp and TimezoneTimestampTz with tuple variants wrapping sqlfunc-generated structs TimezoneTimestampBinary and TimezoneTimestampTzBinary.

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_timestamp_binary and timezone_timestamp_tz_binary
  • Replace unit enum variants with tuple variants wrapping the generated structs
  • Update all match arms to delegate to the struct methods
  • Update scalar.rs optimizations to use matches! macro

@antiguru antiguru force-pushed the binary_func_timezone_timestamp branch from 0d41cf6 to cff0841 Compare February 9, 2026 14:59
@antiguru antiguru marked this pull request as ready for review February 9, 2026 15:40
@antiguru antiguru requested review from a team as code owners February 9, 2026 15:40
@antiguru antiguru requested review from ggevay and ohbadiah February 9, 2026 15:40
…ttern

Replace the unit BinaryFunc variants TimezoneTimestamp and
TimezoneTimestampTz with tuple variants wrapping sqlfunc-generated
structs TimezoneTimestampBinary and TimezoneTimestampTzBinary.

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_timestamp branch from cff0841 to 5e21693 Compare February 9, 2026 18:42
@antiguru antiguru merged commit 457d329 into MaterializeInc:main Feb 9, 2026
133 checks passed
@antiguru antiguru deleted the binary_func_timezone_timestamp branch February 9, 2026 20:36
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