Skip to content
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

Query: Add missing translators for Math functions in SqlServer provider #7601

Closed
rpawlaszek opened this issue Feb 12, 2017 · 10 comments
Closed
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. good first issue This issue should be relatively straightforward to fix. help wanted This issue involves technologies where we are not experts. Expert help would be appreciated. type-enhancement
Milestone

Comments

@rpawlaszek
Copy link
Contributor

There is quite a number of math functions not translated: Math.Exp, Math.Log10, Math.Log, Math.Sqrt, Math.Acos, Math.Asin, Math.Atan2, Math.Atan, Math.Cos, Math.Sin, Math.Tan. The implementation is as easy as for the ones translated that derive from MultipleOverloadStaticMethodCallTranslator. Could I ask to implement them? I implemented them locally and they all work fine.

Further technical details

EF Core version: all
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Windows 10 Pro
IDE: Visual Studio 2015

@rpawlaszek rpawlaszek changed the title Translate more Math functions for SqlServer provider Missing Math functions in SqlServer provider Feb 12, 2017
@rpawlaszek rpawlaszek changed the title Missing Math functions in SqlServer provider Missing translators for Math functions in SqlServer provider Feb 12, 2017
@rowanmiller rowanmiller added this to the Backlog milestone Feb 13, 2017
@rowanmiller rowanmiller added the help wanted This issue involves technologies where we are not experts. Expert help would be appreciated. label Feb 14, 2017
@rpawlaszek
Copy link
Contributor Author

@rowanmiller what does the label "up-for-grabs" mean?

@rowanmiller
Copy link
Contributor

@rpawlaszek we use it to identify items that would be good candidates for a contribution from the community. It doesn't mean we're not going to do it, just that someone from the community may want to pick it up before we get to it.

@rpawlaszek
Copy link
Contributor Author

Great:) As I understand this includes implementing the functionality AND the tests, right? And if I would like to do it is this the procedure? Sorry if it is obvious, I just haven't done this ever before.

@rowanmiller
Copy link
Contributor

@rpawlaszek correct. It is also best to start with a small contribution for your first one. So if you plan to tackle this, probably start with one method until you get the hang of how the process works and the type of feedback you get on the code review etc.

@rpawlaszek
Copy link
Contributor Author

@rowanmiller I started with a translator for Math.Exp looking at the definition of the translator for Math.Abs, included it in _methodCallTranslators in SqlServerCompositeMethodCallTranslator and then added Where_math_exp. Any comments?

@smitpatel
Copy link
Contributor

@rpawlaszek - Submit a pull request to this repo so that we can review the diff and give you feedback.

@ErikEJ
Copy link
Contributor

ErikEJ commented Feb 16, 2017

http://ardalis.com/github-pull-request-checklist - and also check the contributing guide

@maumar
Copy link
Contributor

maumar commented Feb 19, 2017

fixed in 074fd1b

@maumar maumar closed this as completed Feb 19, 2017
@maumar maumar modified the milestones: 2.0.0, Backlog Feb 19, 2017
@maumar maumar added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Feb 19, 2017
@rpawlaszek
Copy link
Contributor Author

Just a small update as I omitted one more function that is translated 1-1: Math.Sign that Sql Server supports

@maumar
Copy link
Contributor

maumar commented Feb 20, 2017

@rpawlaszek please open new PR for that

@ajcvickers ajcvickers changed the title Missing translators for Math functions in SqlServer provider Query: Missing translators for Math functions in SqlServer provider May 9, 2017
@smitpatel smitpatel changed the title Query: Missing translators for Math functions in SqlServer provider Query: Add missing translators for Math functions in SqlServer provider May 9, 2017
@bricelam bricelam added good first issue This issue should be relatively straightforward to fix. and removed good first issue This issue should be relatively straightforward to fix. labels May 31, 2019
@ajcvickers ajcvickers modified the milestones: 2.0.0-preview1, 2.0.0 Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. good first issue This issue should be relatively straightforward to fix. help wanted This issue involves technologies where we are not experts. Expert help would be appreciated. type-enhancement
Projects
None yet
Development

No branches or pull requests

7 participants