Repository navigation
Attribute change propagation - #1663
Merged
Merged
Conversation
updateOperatorPropertiesOnSchemaChange
Use recursive function so that nested attributes can be processed, e.g. TypeCasting This code uses bad practice that needs to be fixed afterwards
Contributor
Author
|
Related to #1747, which deals with the case when the user deletes an attribute. |
zuozhiw
approved these changes
Dec 12, 2022
zuozhiw
marked this pull request as ready for review
December 12, 2022 12:06
yangzhang75
pushed a commit
to yangzhang75/texera
that referenced
this pull request
Jun 22, 2026
In the past, when users deleted an attribute or changed an attribute name through an operator, Texera wouldn't propagate this change to the succeeding operators. This caused an error when users tried to run the workflow because the succeeding operators would contain invalid attributes. Additionally, in the case of changing the attribute name, it was inconvenient since users would have to change the attribute name in every related operator if they changed it in one place. This PR will solve the above problem. It propagates the changes in attributes, i.e., input schema, the set of attributes, to succeeding operators. For example, when a user renames an attribute through an operator, the attribute name will be updated in all succeeding operators. Co-authored-by: Zuozhi Wang <[email protected]>
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.
In the past, when users deleted an attribute or changed an attribute name through an operator, Texera wouldn't propagate this change to the succeeding operators. This caused an error when users tried to run the workflow because the succeeding operators would contain invalid attributes. Additionally, in the case of changing the attribute name, it was inconvenient since users would have to change the attribute name in every related operator if they changed it in one place.
This PR will solve the above problem. It propagates the changes in attributes, i.e., input schema, the set of attributes, to succeeding operators. For example, when a user renames an attribute through an operator, the attribute name will be updated in all succeeding operators.
Demo (to be uploaded):
Change the input attribute's name