You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Query : ToString() method that takes a formatter argument should do client evaluation #7364
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.
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.
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
@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.
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
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
@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.
Activity
Fix to #7364 - Query : ToString() method that takes a formatter argum…
Fix to #7364 - `Distinct()` after `Select()`ing a property doesn't ge…
Fix to #7364 - `Distinct()` after `Select()`ing a property doesn't ge…
divega commentedon Jan 9, 2017
We could consider actually supporting translation in some specific cases.
Fix to #7364 - Query : ToString() method that takes a formatter argum…
maumar commentedon Jan 11, 2017
change translating ToString with formatter to the client has been checked in here: 8b0ef7f
smitpatel commentedon Jan 20, 2017
@maumar - Is this fixed?
maumar commentedon Jan 20, 2017
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.
[-]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[/+]divega commentedon Jan 20, 2017
@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.
smitpatel commentedon Feb 17, 2017
We need to do analysis on formatters here. There are multiple formatters for each type, with different set of formatters on client/server side.
5 remaining items
smitpatel commentedon Mar 27, 2017
We are doing client eval already. @maumar 's PR fixed it. Looks like we forgot to close the issue earlier.
[-]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[/+]los93sol commentedon Nov 7, 2017
In my specific issue #10227, evaluating on the client does not resolve the issue for me
los93sol commentedon Nov 7, 2017
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
smitpatel commentedon Nov 7, 2017
@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.