-
Notifications
You must be signed in to change notification settings - Fork 10
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
Fastavro floating number imprecision #132
Conversation
@@ -4,7 +4,7 @@ | |||
|
|||
from ..cli import from_command | |||
|
|||
_AVRO_TYPES = {"integer": "long", "number": "float", "int": "long"} | |||
_AVRO_TYPES = {"integer": "long", "number": "double", "int": "long"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: swap magic string with a constant, makes for fewer changes in the future. although...in a case like this it would be the same number of changes either way, so maybe this suggestion is pointless?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
personally I don't see an advantage in changing this at the moment, we could revisit later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be tested on one of the VMs but otherwise looks fine
https://ctds-planx.atlassian.net/browse/PXP-11430
Bug Fixes
Use correct fastavro type for floating number to prevent imprecision
Improvements
Update detect-secrets and black version
remove unused trufflehog secret detection.