Repository navigation
Lupl/fix non correspondence disengage - #96
Merged
Merged
Conversation
The refactor introduces `dealiased_field_name` as variable name for referencing validation alias-sensitive fields (scalar type and list of scalar type fields) in the planner. Closes #94.
The `graphty` mapper essentially constructs or mediates a mapping between a model and a dataframe; i.e. it iterates over the model fields and compiles a lazy Polars query plan that modifies the dataframe in such a way that it's rows can be consumed by the Pydantic instance machinery. Now, for fields that do not have a (potentially de-aliased) correspondence in the data, the `graphty` planner should basically disengage (`continue`) and transfer responsibility to Pydantic. Also, if the model fields iteration does not yield any dataframe modification expressions, the planner should again transfer responsibility to Pydantic and forward the frame unchanged. This commit implements the above two changes; this eliminates a series of causes for `polars.ColumnNotFoundError` in the planner and also fixes the case described in #95. Closes #95.
This was referenced Oct 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #94.
Closes #95 .