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

Rules Compiler #24

Open
Zeutschler opened this issue May 5, 2022 · 0 comments
Open

Rules Compiler #24

Zeutschler opened this issue May 5, 2022 · 0 comments
Assignees
Labels
conceptual Conceptual and braking changes

Comments

@Zeutschler
Copy link
Owner

Rules need to be written in python. This requires 'real' Python coding and quite some boilerplate code. Sample:

@rule(cube="sales", trigger="delta %") def my_rule(c: Cell): return c["delta"] / c.plan["plan"]

Why not let users focus on the core rules itself and do the wrapping for them. This should not be too hard. sample:

["delta %"] = ["delta"] / ["plan"]

This would be a good bridge for users from TM/1 and alike.
However, this will only work with simple one-line rules.

@Zeutschler Zeutschler added the conceptual Conceptual and braking changes label May 5, 2022
@Zeutschler Zeutschler self-assigned this May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conceptual Conceptual and braking changes
Projects
None yet
Development

No branches or pull requests

1 participant