-
Notifications
You must be signed in to change notification settings - Fork 27
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
Enhance Integer and Float Handling in Provider Set #61
base: development
Are you sure you want to change the base?
Enhance Integer and Float Handling in Provider Set #61
Conversation
Thanks for your contribution and this PR. I will take a look into your changes asap. |
Can you give me an example when the error occurs (e.g. the table structure and YAML schema?) Does the error only occurs when you pass integer or float values with quotes within the YAML schema? Just to be able to reproduce the behavior. In my testings I was able to set integer values, as long as I didn't quote them but couldn't set any numeric or float fields, no matter what branch I used (
tables:
- auth_user:
primary_key: id
chunk_size: 5000
fields:
- first_name:
provider:
name: fake.first_name
- last_name:
provider:
name: set
value: "Bar"
- position:
provider:
name: set
value: 1000
- price:
provider:
name: set
value: 90.99
- price_exclusive:
provider:
name: set
value: 200.99 Before the anonymization:
After calling the anonymization:
|
c02fa6f
to
c081bd2
Compare
Can you give me just a small example how to force the error (so I can test and review this pull request)? Especially for the numeric types. As mentioned above I could only reproduce an error for integer types if I use double quotes. |
I will prepare in 1 or 2 days and will share the details with you. |
Hi @bizzappdev from this comment, @hkage is waiting for this PR before preparing a new release. Do you think you will have time to address feedback soon? No pressure, I just want to know if it worth to request a release without this PR :) |
I could prepare a new release, even if this PR is still open. But as long as I can't reproduce the bug, I cannot merge it. My suggestion would be to create a new minor version and release this bugfix (as soon as I can test it) as a bugfix release afterwards. |
Yes it will be nice, thank you 😃 |
Improvements for integers and floats and how they are managed within the provider set.
When the field's data type is Integer or Numeric, the set provider raises an error because the values are not properly typecasted.
This PR provides proper typecast for integer and float/numeric datatype fields.