Skip to content

Conversation

rstam
Copy link
Contributor

@rstam rstam commented Oct 7, 2025

No description provided.

@rstam rstam requested a review from a team as a code owner October 7, 2025 19:42
var strATranslation = ExpressionToAggregationExpressionTranslator.Translate(context, strAExpression);
var strBExpression = arguments[1];
var strBTranslation = ExpressionToAggregationExpressionTranslator.Translate(context, strBExpression);
var ast = AstExpression.Cmp(strATranslation.Ast, strBTranslation.Ast);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add support for case insensitive/more overloads comparison by translating to $strcasecmp?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var strATranslation = ExpressionToAggregationExpressionTranslator.Translate(context, strAExpression);
var strBExpression = arguments[1];
var strBTranslation = ExpressionToAggregationExpressionTranslator.Translate(context, strBExpression);
var ast = AstExpression.Cmp(strATranslation.Ast, strBTranslation.Ast);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@adelinowona adelinowona Oct 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that this class was extended to support the static string.Compare method, it seems its name is a bit outdated now? I would suggest updating the class name though I don't have a good suggestion maybe StringComparisonExpressionToFilterTranslator?

throw new ExpressionNotSupportedException(expression);
}

private static bool IsStaticCompareMethod(MethodInfo method)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The IsStaticCompareMethod doesn't actually check if the method is named "Compare". I doubt this is intentional?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants