-
Notifications
You must be signed in to change notification settings - Fork 503
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
Add Precision argument to equality
for numeric and float type columns
#757
Comments
@rlh1994 conceptually I am into this, as long as it works in a backwards-compatible way. Offhand, I'm not sure how many tests this already has, but part of this PR would likely include fleshing that out to add a bunch of cases for the newly supported options (probably including some negative tests, i.e. making sure that it correctly fails). I haven't reviewed this in depth, but gave it a skim and it looks like it's significantly less hassle than I would have assumed! I thought that the cross-database support was going to be a nightmare 💀 Feel free to spin up a PR and let's get some testing attached to it! |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days. |
You shall not close! |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days. |
Describe the feature
It would be helpful to have an argument to the
equality
test that would specify the precision required for equality for numeric and float type columns by first rounding them before comparison. Currently equality can fail on seemingly identical tables due to precision errors as part of processing.Describe alternatives you've considered
Removing these columns from the comparison, or implementing an overwritten macro to do this myself.
Additional context
Who will this benefit?
Anyone using the equality test with numeric/float type columns.
Are you interested in contributing this feature?
I have a working solution that I use locally based off the existing
equality
code, it works fine but is maybe not the cleanest way to do it.The text was updated successfully, but these errors were encountered: