-
Notifications
You must be signed in to change notification settings - Fork 4
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
Check on ascending order of cdf values incorrect when output_type_id
data type is character
#78
Comments
In general, it seems like it's hard to deal with this because the |
Ensuring a mix of numeric and character values are sorted correctly involves creating a separate column for the numerics and using that as the first sort key. This will fix #78
Ensuring a mix of numeric and character values are sorted correctly involves creating a separate column for the numerics and using that as the first sort key. This then allows the original method of validating ascent to work. Another solution is split the data frame into a list and then perform a numeric sort if the column can be transformed, but the coercion will probably have the equivalent amount of overhead. This will fix #78
Ensuring a mix of numeric and character values are sorted correctly involves creating a separate column for the numerics and using that as the first sort key. This then allows the original method of validating ascent to work. Another solution is split the data frame into a list and then perform a numeric sort if the column can be transformed, but the coercion will probably have the equivalent amount of overhead. This will fix #78
The helper function
check_values_ascending
arranges by theoutput_type_id
here, which can result in an incorrect ordering and an incorrect validation failure when theoutput_type_id
has a character data type but represents numeric values. This hasn't come up in testing with quantile outputs because theoutput_type_id
s for those have a leading 0 -- but that may not be the case for cdf output types.Here is an example:
If it's more helpful to have an example in data file format, the example above is a subset of this file.
The text was updated successfully, but these errors were encountered: