Skip to content

Conversation

abhishekkumams
Copy link
Contributor

@abhishekkumams abhishekkumams commented May 8, 2024

Why make this change?

What is this change?

  • using float.Parse() and decimal.Parse() which automatically takes care of int values.

How was this tested?

  • Added new test data points in the existing tests for insertion/updation of float/decimal/single type columns with Integer values

Sample Request(s)

Before:

image

image

After:

image

image

@abhishekkumams
Copy link
Contributor Author

/azp run

@abhishekkumams abhishekkumams self-assigned this May 8, 2024
@abhishekkumams abhishekkumams added the bug Something isn't working label May 8, 2024
@abhishekkumams abhishekkumams added this to the 1.1rc milestone May 8, 2024
@abhishekkumams
Copy link
Contributor Author

/azp run

@abhishekkumams abhishekkumams changed the title fix support for integer values in float/decimal type columns Fix support for integer values in float/decimal type columns May 8, 2024
@abhishekkumams
Copy link
Contributor Author

/azp run

Copy link
Contributor

@seantleonard seantleonard left a comment

Choose a reason for hiding this comment

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

Before merging, would like additional perspective from you about your approach.

@abhishekkumams
Copy link
Contributor Author

/azp run

@ayush3797
Copy link
Contributor

Can you try with SINGLE_TYPE as well? Supply an int value for single types and see what happens?

@ayush3797
Copy link
Contributor

ayush3797 commented May 10, 2024

And add tests for all
relevant types as well.

Also, please add tests for null values in the column if not already present.

@abhishekkumams
Copy link
Contributor Author

/azp run

@abhishekkumams
Copy link
Contributor Author

/azp run

@seantleonard seantleonard modified the milestones: 1.1rc, 1.1 Patch 01 May 11, 2024
@seantleonard
Copy link
Contributor

/azp run

Copy link
Collaborator

@Aniruddh25 Aniruddh25 left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you for addressing all concerns.

@Aniruddh25 Aniruddh25 merged commit df426a4 into main May 13, 2024
@Aniruddh25 Aniruddh25 deleted the dev/abhishekkuma/fix-int-float-error branch May 13, 2024 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when receiving Decimal value without a decimal present
5 participants