-
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: Add translator for Substring method which map to SUBSTRING built-in functions #24284
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for all these translation contributions @Marusyk!
Can you please try enabling NorthwindWhereQueryCosmosTest.Where_string_substring as well? Note that there are other skipped tests for Trim/TrimStart/TrimEnd in NorthwindFunctionsQueryCosmosTest, can you please check those too?
Finally, if you intending to submit more string translations, may I suggest submitting them in a single PR rather than a PR-per-translation? This simplifies the review process and the general project history.
Not at all! I need this for my work
@roji, I will but, I do it in my spare time, so, when I have time to add more than one translation, then I will do it within one PR. But when I have time to add only one translation, I don't see a problem in doing it within different PRs. Translations are separate parts of the functionality that are not dependent on each other in most cases. Could you please explain how this can affect the general history of the project?
What if I want to submit only a few of them? Only one of them? What if I want to submit one today and the other in the next week? Should I wait 2 weeks and then merge conflicts in that case? |
All of them are not relevant because Cosmos DB TRIM/LTRIM/RTRIM does not take arguments (the same as SQL Server) efcore/src/EFCore.Cosmos/Query/Internal/StringMethodTranslator.cs Lines 138 to 160 in 1da7f89
|
@Marusyk thank you for the contribution! |
Add translator for
string.Substring()
Issue #16143
Please review.
Thank you in advance