Skip to content

Attribute change propagation - #1663

Merged
zuozhiw merged 38 commits into
masterfrom
cli-attribute-change-propagation
Dec 12, 2022
Merged

zuozhiw merged 38 commits into
masterfrom
cli-attribute-change-propagation

Conversation

@aahei

@aahei aahei commented Sep 21, 2022 •

Copy link
Copy Markdown
Contributor

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

@aahei
aahei requested a review from zuozhiw September 21, 2022 21:23
@aahei

aahei commented Nov 28, 2022

Copy link
Copy Markdown
Contributor Author

Related to #1747, which deals with the case when the user deletes an attribute.

@zuozhiw
zuozhiw marked this pull request as ready for review December 12, 2022 12:06
@zuozhiw
zuozhiw merged commit 35a38d7 into master Dec 12, 2022
@zuozhiw
zuozhiw deleted the cli-attribute-change-propagation branch December 12, 2022 12:47
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]>
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