Skip to content

Conversation

maumar
Copy link
Contributor

@maumar maumar commented Apr 22, 2025

Reacting to Cosmos changing the signature of FullTextScore function.

Fixes #35983

@maumar
Copy link
Contributor Author

maumar commented Apr 22, 2025

New signature is not yet available on Cosmos so FullTextScore tests are failing currently.

@maumar maumar marked this pull request as ready for review April 23, 2025 06:52
@maumar maumar requested a review from a team as a code owner April 23, 2025 06:52
@maumar
Copy link
Contributor Author

maumar commented Apr 23, 2025

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

…e multiple keywords rather than keyword array

Reacting to Cosmos changing the signature of FullTextScore function.

Fixes #35983
maumar added a commit that referenced this pull request Apr 25, 2025
…e multiple keywords rather than keyword array

Port of #35984
Fixes #35983

Description
Reacting to Cosmos changing the signature of FullTextScore function.

Customer impact
TBD

How found
Partner team ask.

Regression
No

Testing
Extensively tested on EF 10, manual testing on EF9. End-to-end testing is not possible because we can't create containers programmatically (no support for it inside EF Core itself, and the Cosmos SDK which supports it is currently only available in beta, so we can't take dependency on it). Instead, we created containers and data using EF 10, ported all the query tests from EF 10 and ran them using the EF9 bits. Partner team will conduct additional testing on their end.

Risk
Low. Localized change to translation - method signature exposed by EF is already in place. New translation now resembles other FullText methods, so same techniques can be used for translation (essentially re-using code that has been in place for other methods and working). Full text search support is experimental on EF9. Added quirk just in case.
Copy link
Member

@roji roji left a comment

Choose a reason for hiding this comment

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

LGTM (see one nit)

…ressionVisitor.ParameterInliner.cs

Co-authored-by: Shay Rojansky <roji@roji.org>
@maumar maumar merged commit 2ea7192 into main Apr 27, 2025
7 checks passed
@maumar maumar deleted the fix35983 branch April 27, 2025 04:38
maumar added a commit that referenced this pull request May 12, 2025
…e multiple keywords rather than keyword array

Port of #35984
Fixes #35983

Description
Reacting to Cosmos changing the signature of FullTextScore function.

Customer impact
TBD

How found
Partner team ask.

Regression
No

Testing
Extensively tested on EF 10, manual testing on EF9. End-to-end testing is not possible because we can't create containers programmatically (no support for it inside EF Core itself, and the Cosmos SDK which supports it is currently only available in beta, so we can't take dependency on it). Instead, we created containers and data using EF 10, ported all the query tests from EF 10 and ran them using the EF9 bits. Partner team will conduct additional testing on their end.

Risk
Low. Localized change to translation - method signature exposed by EF is already in place. New translation now resembles other FullText methods, so same techniques can be used for translation (essentially re-using code that has been in place for other methods and working). Full text search support is experimental on EF9. Added quirk just in case.
maumar added a commit that referenced this pull request May 12, 2025
…e multiple keywords rather than keyword array (#36000)

Port of #35984
Fixes #35983

Description
Reacting to Cosmos changing the signature of FullTextScore function.

Customer impact
TBD

How found
Partner team ask.

Regression
No

Testing
Extensively tested on EF 10, manual testing on EF9. End-to-end testing is not possible because we can't create containers programmatically (no support for it inside EF Core itself, and the Cosmos SDK which supports it is currently only available in beta, so we can't take dependency on it). Instead, we created containers and data using EF 10, ported all the query tests from EF 10 and ran them using the EF9 bits. Partner team will conduct additional testing on their end.

Risk
Low. Localized change to translation - method signature exposed by EF is already in place. New translation now resembles other FullText methods, so same techniques can be used for translation (essentially re-using code that has been in place for other methods and working). Full text search support is experimental on EF9. Added quirk just in case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cosmos/FTS: update translation of FullTextScore to use multiple keywords rather than keyword array
2 participants