Skip to content

Support distinct select on string enums#4119

Merged
jeremydmiller merged 1 commit intoJasperFx:masterfrom
erdtsieck:feature/support-distinct-select-on-string-enums
Feb 8, 2026
Merged

Support distinct select on string enums#4119
jeremydmiller merged 1 commit intoJasperFx:masterfrom
erdtsieck:feature/support-distinct-select-on-string-enums

Conversation

@erdtsieck
Copy link
Contributor

@erdtsieck erdtsieck commented Feb 7, 2026

Add a test for Distinct on nullable enums serialized as strings. Refactor NewScalarSelectClause to centralize scalar reading into ReadScalar/ReadScalarAsync, simplify null checks, and add handling for enums stored as strings (Enum.Parse) or as integers, for both sync and async paths. Also remove the #nullable enable directive at the top of the file.

Add a test for Distinct on nullable enums serialized as strings (System.Text.Json) and include Weasel.Core using. Refactor NewScalarSelectClause to centralize scalar reading into ReadScalar/ReadScalarAsync, simplify null checks, and add handling for enums stored as strings (Enum.Parse) or as integers, for both sync and async paths. Also remove the #nullable enable directive at the top of the file.
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