Skip to content

Reject UUID inputs for MIN and MAX #61

Description

@alexeichhorn

Problem

UUID is included in NullableAggregateOutput, so these calls compile:

dbkit::func::min(Event::id);
dbkit::func::max(Event::id);

PostgreSQL has no built-in MIN(UUID) or MAX(UUID) aggregate and rejects the query at execution time.

Expected behavior

  • Remove UUID from the accepted MIN / MAX input set.
  • Keep UUID support in models, comparisons, filters, and mutations unchanged.
  • Add compile-fail coverage for required and nullable UUID columns.
  • Avoid using one shared trait as both a nullability mapping and an inaccurate aggregate capability marker.

PostgreSQL extrema input types

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions