Closed celi closed 5 months ago
I found that FastExpressionCompiler changes this behavior.
Changing line https://github.com/microsoft/RulesEngine/blob/9bcf4f334b7b98b4ab2d347522ff86b3e884afed/src/RulesEngine/ExpressionBuilders/RuleExpressionParser.cs#L60 to
return wrappedExpression.Compile();
fix this problem.
This is bug for me.
@celi i can maybe add option to disable fast compile if needed, it will be a tradeoff between performance vs accuracy Would that work for you?
@abbasc52 Yes, please. I didn't test decrease of performance without FastExpressionCompiler yet, but I plan to do that. It will be easier with this switch.
@celi can you share complete sample code to reproduce this issue?
@abbasc52 https://github.com/celi/MsRulesEngineCompareWithNullBug
just run dotnet run
in project folder
Hi, code like this
run in c# return false, but same comparison run in RulesEngine return true, why?