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

fix: numeric type evolution #126

Merged
merged 2 commits into from
May 4, 2022
Merged

fix: numeric type evolution #126

merged 2 commits into from
May 4, 2022

Conversation

y-lakhdar
Copy link
Contributor

There was an issue with the numeric type "evolution".
When the FieldAnalyser was detecting that a field that was previously defined as Integer but now detected as float, then the more englobing type (float) was chosen.

However, the opposite scenario was causing an issue rather than sticking to the most englobing type.

Copy link
Collaborator

@louis-bompart louis-bompart left a comment

Choose a reason for hiding this comment

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

specs descriptions doesn't fit anymore

src/fieldAnalyser/typeUtils.spec.ts Outdated Show resolved Hide resolved
{
from: FieldTypes.STRING,
to: FieldTypes.LONG,
},
])('should return true', ({from, to}) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

'should return true'? :suspect:

src/fieldAnalyser/typeUtils.spec.ts Outdated Show resolved Hide resolved
@y-lakhdar y-lakhdar merged commit 296f47b into main May 4, 2022
@y-lakhdar y-lakhdar deleted the CDX-918 branch May 4, 2022 17:18
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.

3 participants