-
Notifications
You must be signed in to change notification settings - Fork 525
Query: Fixes LINQ ToString got absorbed during translation #3385
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
Conversation
...mos.EmulatorTests/BaselineTest/TestBaseline/LinqGeneralBaselineTests.ValidateLinqQueries.xml
Outdated
Show resolved
Hide resolved
Microsoft.Azure.Cosmos/src/Linq/BuiltinFunctions/StringBuiltinFunctions.cs
Show resolved
Hide resolved
...soft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/LinqTranslationBaselineTests.cs
Outdated
Show resolved
Hide resolved
Microsoft.Azure.Cosmos/src/Linq/BuiltinFunctions/BuiltinFunctionVisitor.cs
Show resolved
Hide resolved
...s.EmulatorTests/BaselineTest/TestBaseline/LinqGeneralBaselineTests.TestThenByTranslation.xml
Show resolved
Hide resolved
adityasa
left a comment
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.
🕐
…re/azure-cosmos-dotnet-v3 into users/leminh/LinqToStringFix
...soft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/LinqTranslationBaselineTests.cs
Show resolved
Hide resolved
...soft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/LinqTranslationBaselineTests.cs
Show resolved
Hide resolved
adityasa
left a comment
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.
![]()
adityasa
left a comment
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.
Waiting for a final review.
adityasa
left a comment
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.
Waiting for final review.
...soft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/LinqTranslationBaselineTests.cs
Show resolved
Hide resolved
sboshra
left a comment
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.
![]()
|
Command 'stop' is not supported by Azure Pipelines. Supported commands
See additional documentation. |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
adityasa
left a comment
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.
![]()
Pull Request Template
Description
This PR fixes the issue of ToString got removed during the LINQ to SQL translation process.
Before: container.GetItemLinqQueryable().select(doc => doc.field_a.ToString()) will get translated to SELECT VALUE r.field_a FROM r
After: this query will translate to use the CosmosDB ToString function: SELECT VALUE ToString(r.field_a) FROM r
Type of change
Please delete options that are not relevant.
Closing issues
closes #3346
To automatically close an issue: closes #IssueNumber