Skip to content

Add Translation for MathF (#18842) - #24829

Merged
bricelam merged 1 commit into
dotnet:mainfrom
ntovas:AddMathFTranslations
Jun 7, 2021
Merged

bricelam merged 1 commit into
dotnet:mainfrom
ntovas:AddMathFTranslations

Conversation

@ntovas

@ntovas ntovas commented May 4, 2021

Copy link
Copy Markdown
Contributor

Fixes #18842

@dnfadmin

dnfadmin commented May 4, 2021 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@smitpatel

Copy link
Copy Markdown
Contributor
  • The reflection is going wrong in those types causing errors because methods are not found.
  • You will need to add a test for each new method translation you are adding.

@bricelam

bricelam commented May 4, 2021

Copy link
Copy Markdown
Contributor

@smitpatel Should we translate Math.PI to PI()? (might be a bit silly for a constant...)

@smitpatel

Copy link
Copy Markdown
Contributor

If it is easy, sure.

@ntovas
ntovas force-pushed the AddMathFTranslations branch from 56e4690 to be2ab98 Compare May 4, 2021 18:12
@ntovas
ntovas requested a review from bricelam May 4, 2021 18:13
@ntovas

ntovas commented May 4, 2021

Copy link
Copy Markdown
Contributor Author

@smitpatel hey, I couldn't find where are the tests for this functionality.

@bricelam

bricelam commented May 4, 2021

Copy link
Copy Markdown
Contributor

If it is easy, sure.

Needs a new member translator, but it should be pretty easy. Maybe I'll tack it on when merging this PR... (unless @ntovas wants to give it a go first)

@bricelam

bricelam commented May 4, 2021

Copy link
Copy Markdown
Contributor

...we should probably file an issue to translate the Cosmos math functions too...

@roji

roji commented May 4, 2021

Copy link
Copy Markdown
Member

@bricelam there's #24463 waiting for @maumar in case you're in the math mood.

@ntovas

ntovas commented May 4, 2021

Copy link
Copy Markdown
Contributor Author

@bricelam I would like to give to try it, but I will need a bit more context, specially on member translator

Also I could make the same fix for CosmosDb

@ntovas
ntovas force-pushed the AddMathFTranslations branch 3 times, most recently from db4c7d0 to 7c1996f Compare May 8, 2021 12:07
@smitpatel

Copy link
Copy Markdown
Contributor

Cosmos tests are failing.

@ntovas

ntovas commented May 12, 2021

Copy link
Copy Markdown
Contributor Author

Cosmos tests are failing.

I will look at them and will add any changes, most likely on Saturday, if it's ok for you.

@ntovas
ntovas force-pushed the AddMathFTranslations branch from 7c1996f to e19152f Compare May 16, 2021 13:27
@bricelam
bricelam merged commit 86c2ad8 into dotnet:main Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Translate MathF members to SQL functions

6 participants