Skip to content

Query : ToString() method that takes a formatter argument should do client evaluation #7364

Closed

Description

@maumar

Currently ToString calls with formatter (e.g ToString("X")) are translated to SQL and the formatter is ignored, we should instead translate it on the client.

Activity

  1. added 3 commits that reference this issue on Jan 5, 2017
  2. added this to the 2.0.0 milestone on Jan 9, 2017
  3. divega commented on Jan 9, 2017

    @divega
    Contributor

    We could consider actually supporting translation in some specific cases.

  4. added a commit that references this issue on Jan 11, 2017
  5. maumar commented on Jan 11, 2017

    @maumar
    ContributorAuthor

    change translating ToString with formatter to the client has been checked in here: 8b0ef7f

  6. smitpatel commented on Jan 20, 2017

    @smitpatel
    Contributor

    @maumar - Is this fixed?

  7. maumar commented on Jan 20, 2017

    @maumar
    ContributorAuthor

    partially: the part about ignoring formatter is fixed (i.e. now we do client evaluation rather than ignoring the formatter), but what @divega was suggesting (i.e. translate some of the formatters to SQL) is not.

  8. changed the title [-]Query : ToString() method that takes a formatter argument should still be translated on the client[/-] [+]Query : ToString() method that takes a formatter argument should translated on the server[/+] on Jan 20, 2017
  9. divega commented on Jan 20, 2017

    @divega
    Contributor

    @maumar I think that was a note I took in triage but the original suggestion came from @anpete. If we can take a quick look and what formatters would make a lot of sense to translate then I think we can create a new issue for that and prioritize it in triage.

  10. smitpatel commented on Feb 17, 2017

    @smitpatel
    Contributor

    We need to do analysis on formatters here. There are multiple formatters for each type, with different set of formatters on client/server side.

  11. 5 remaining items

  12. smitpatel commented on Mar 27, 2017

    @smitpatel
    Contributor

    We are doing client eval already. @maumar 's PR fixed it. Looks like we forgot to close the issue earlier.

  13. changed the title [-]Query : ToString() method that takes a formatter argument should translated on the server[/-] [+]Query : ToString() method that takes a formatter argument should do client evaluation[/+] on May 9, 2017
  14. los93sol commented on Nov 7, 2017

    @los93sol

    In my specific issue #10227, evaluating on the client does not resolve the issue for me

  15. los93sol commented on Nov 7, 2017

    @los93sol

    For clarity, when and logic is applied to the where then doing this on the client is fine, but when we or the logic together with other fields you have a potential for unexpected results

  16. smitpatel commented on Nov 7, 2017

    @smitpatel
    Contributor

    @los93sol - Client evaluation does not work by breaking into pieces without consequences. It will translate where clause appropritately & evaluate on in memory whatever cannot and always give correct results regardless of AND/OR logic. If you are having a repro code which demonstrate incorrect results for client evaluation then please file a new issue.

  17. modified the milestones: , 2.0.0 on Oct 15, 2022
  18. added theissue type on Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions