-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Cosmos: Fixup to Regex.IsMatch translation #28139
Comments
Depend on #26410, right? |
Not really blocked, the method translator should throw exception from itself. |
Don't we avoid doing that since it would block client eval? |
Depends if we want to do client eval of certain things. |
OK, I'll bring this up in design, possibly with a proposal for #26410. |
If you think we would need #26410 for this, we can wait till we put that one in plan. |
Just to figure out how we see things... If we're OK with throwing in method translators, #26410 becomes much less important, maybe even closeable (note it's already in the milestone). I still think that ideally we just do #26410, e.g. by having translator return some NotTranslatableExpression (which wraps details); and then we don't have to discuss throwing because that always allows client eval and provides nicer exceptions. But we can discuss all that. |
I'll prepare a PR for this |
@Marusyk sure, but we'll need to decide what we want to do with unsupported options (design discussion pending). |
So, should I return the previous version with HashSet?
I'm not sure that understand this task. Do I need to implement CosmosEvaluatableExpressionFilter? |
Nope, I don't see any reason for doing so. The current code does the right thing (for now) - if there's any unsupported option, it just returns null.
Yeah, @smitpatel can probably offer some more assistance if needed. |
@Marusyk do you intend to work on this? |
Unfortunately, I don't have time to investigate EvaluatableExpressionFilter. |
Discussed with @smitpatel and the constantization of the RegexOptions parameters would require some infra work, so we'll leave that for now. |
Fixup to #28121
Throw a detailed exception for unsupported options when translating Regex.IsMatch (see discussion below)The text was updated successfully, but these errors were encountered: