Skip to content
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

ETL Static Analysis - Detect equivalent elements property access #1

Open
arcanefoam opened this issue Feb 7, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@arcanefoam
Copy link
Member

When using ETL, it is fine to use the equivalents operation to retrieve target elements created by other rules. However, as soon as you access any attribute in a target element retrieved by equivalents, you are relying on a specific rule execution order, i.e. you are not only expecting the rule to have created the element, but also that the body of the rule to be executed and the element's attributes/relations to be set. This expectation can not be fulfilled by the two-pass execution strategy of ETL.
The static analyzer could flag this as a warning and recommend that the rule accessing the attributes should be annotated as lazy.

@arcanefoam arcanefoam added the enhancement New feature or request label Feb 7, 2024
@arcanefoam arcanefoam changed the title ETL - Detect equivalent elements property access ETL Static Analysis - Detect equivalent elements property access Feb 7, 2024
@arcanefoam arcanefoam added this to the ETL Static Analysis milestone Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant