Skip to content

Support custom MaxNodes property of expr Config #798

Closed
@5idu

Description

@5idu

Hi,

I have a batch of rules with a large number of conditions (more than 10,000). When compiling these expressions, I encountered the following error:

compilation failed: expression exceeds maximum allowed nodes

After checking the source code, I found that expr has a default limit of 10,000 nodes during compilation. However, in some scenarios like mine, this limit is not sufficient.

Could you please add a method or option to allow users to customize or increase this maximum node limit when compiling expressions? This would be very helpful for handling complex rules.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions