Skip to content

Add option to have required reference types and use C# nullability annotations#678

Draft
mrinal-thomas wants to merge 2 commits intoaloneguid:masterfrom
mrinal-thomas:mrthomas/use-nullable-annotations
Draft

Add option to have required reference types and use C# nullability annotations#678
mrinal-thomas wants to merge 2 commits intoaloneguid:masterfrom
mrinal-thomas:mrthomas/use-nullable-annotations

Conversation

@mrinal-thomas
Copy link
Copy Markdown
Contributor

@mrinal-thomas mrinal-thomas commented Nov 17, 2025

Adds feature #618, using the C# NullabilityInfo class to check for nullability annotations. I also made a small coding style refactor to store useWriting and the new useNullableAnnotations option in an instance variable rather than passing through the call stack everywhere.

Note: potential risky area is behavior around the [ParquetRequired] attribute. You may want to double check I preserved this behavior correctly. Another potential risky area is I added nullability check to Field.Equals. I couldn't find any existing behavior that would be affected by this, but might be worth double checking as well.

Includes minor refactor to avoid passing down
forWriting and useNullableAnnotation through
multiple method calls
@mrinal-thomas mrinal-thomas marked this pull request as draft November 25, 2025 01:58
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.

1 participant