Skip to content

Conversation

@leminh98
Copy link
Contributor

@leminh98 leminh98 commented Aug 15, 2022

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.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Closing issues

closes #3346

To automatically close an issue: closes #IssueNumber

Copy link
Contributor

@adityasa adityasa left a comment

Choose a reason for hiding this comment

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

🕐

Copy link
Contributor

@adityasa adityasa left a comment

Choose a reason for hiding this comment

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

:shipit:

Copy link
Contributor

@adityasa adityasa left a 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.

Copy link
Contributor

@adityasa adityasa left a 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.

sboshra
sboshra previously approved these changes Sep 30, 2022
Copy link
Contributor

@sboshra sboshra left a comment

Choose a reason for hiding this comment

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

:shipit:

@ealsur ealsur enabled auto-merge (squash) October 10, 2022 21:32
@azure-pipelines
Copy link

Command 'stop' is not supported by Azure Pipelines.

Supported commands
  • help:
    • Get descriptions, examples and documentation about supported commands
    • Example: help "command_name"
  • list:
    • List all pipelines for this repository using a comment.
    • Example: "list"
  • run:
    • Run all pipelines or specific pipelines for this repository using a comment. Use this command by itself to trigger all related pipelines, or specify specific pipelines to run.
    • Example: "run" or "run pipeline_name, pipeline_name, pipeline_name"
  • where:
    • Report back the Azure DevOps orgs that are related to this repository and org
    • Example: "where"

See additional documentation.

@leminh98
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@adityasa adityasa left a comment

Choose a reason for hiding this comment

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

:shipit:

@ealsur ealsur disabled auto-merge October 13, 2022 21:53
@ealsur ealsur merged commit 748f86c into master Oct 13, 2022
@ealsur ealsur deleted the users/leminh/LinqToStringFix branch October 13, 2022 21:53
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.

Conversion error: ToString CosmosDb SQL function should be used

6 participants