- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.7k
 
Fix the percentile argument for ApproxPercentileCont must be Float64, not Decimal128(2, 1) #4228
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
Conversation
| 
           @andygrove please check the PR  | 
    
| 
           LGTM @comphead, but I think this PR also needs a unit test so that we don't have regressions in the future.  | 
    
# Conflicts: # datafusion/core/tests/sql/aggregates.rs
| 
           @andygrove thanks, added test  | 
    
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.
Looks good to me -- thanks @comphead
| } | ||
| 
               | 
          ||
| pub(crate) fn merge_sorted_f64(&self, sorted_values: &[f64]) -> TDigest { | ||
| dbg!(&sorted_values); | 
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.
👍
| "The percentile argument for {:?} must be Float64, not {:?}.", | ||
| agg_fun, input_types[1] | 
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.
| "The percentile argument for {:?} must be Float64, not {:?}.", | |
| agg_fun, input_types[1] | |
| "Could not coerce the percent argument for {:?} to Float64. Was {:?}.", | |
| agg_fun, input_types[1] | 
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.
Done
| 
           Thanks @comphead  | 
    
| 
           Benchmark runs are scheduled for baseline = 123ca22 and contender = 446c2ea. 446c2ea is a master commit associated with this PR. Results will be available as each benchmark for each run completes.  | 
    
Which issue does this PR close?
Closes #4103 .
Rationale for this change
Fix the percentile argument for ApproxPercentileCont must be Float64, not Decimal128(2, 1)
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?