Skip to content

[Custom Descriptors] Interpret descriptor casts #7677

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2025
Merged

Conversation

tlively
Copy link
Member

@tlively tlively commented Jun 24, 2025

Descriptor casts must check that the expected descriptor is not null,
check whether the cast value is null, and if so, whether the cast allows
null values through, and finally must check whether the descriptor on
a non-null cast value matches the expected descriptor. This is fairly
different than the implementation of a normal cast, but the possible
results are the same. Add a new doDescCast helper mirroring the
existing doCast helper and use it to implement the various descriptor
casts.

Descriptor casts must check that the expected descriptor is not null,
check whether the cast value is null, and if so, whether the cast allows
null values through, and finally must check whether the descriptor on
a non-null cast value matches the expected descriptor. This is fairly
different than the implementation of a normal cast, but the possible
results are the same. Add a new `doDescCast` helper mirroring the
existing `doCast` helper and use it to implement the various descriptor
casts.
@tlively tlively requested a review from kripken June 24, 2025 03:10
@tlively tlively merged commit 7dbb670 into main Jun 24, 2025
16 checks passed
@tlively tlively deleted the interpret-desc-casts branch June 24, 2025 16:32
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