2010YOUY01 opened a new issue, #18601:
URL: https://github.com/apache/datafusion/issues/18601

   ### Is your feature request related to a problem or challenge?
   
   https://github.com/apache/datafusion/issues/18108 has added support for 
`percentile_cont`, and this function can support more date-related data types.
   
   Data is generated with 
https://github.com/clflushopt/tpchgen-rs/tree/main/tpchgen-cli
   ```
   DataFusion CLI v51.0.0
   > select percentile_cont(0.01) within group (order by l_shipdate)
   from '/Users/yongting/data/tpch_sf1/lineitem.parquet';
   Error during planning: Failed to coerce arguments to satisfy a call to 
'percentile_cont' function: coercion from Date32, Float64 to the signature 
OneOf([Exact([Int8, Float64]), Exact([Int16, Float64]), Exact([Int32, 
Float64]), Exact([Int64, Float64]), Exact([UInt8, Float64]), Exact([UInt16, 
Float64]), Exact([UInt32, Float64]), Exact([UInt64, Float64]), Exact([Float32, 
Float64]), Exact([Float64, Float64])]) failed No function matches the given 
name and argument types 'percentile_cont(Date32, Float64)'. You might need to 
add explicit type casts.
           Candidate functions:
           percentile_cont(expr: Int8, percentile: Float64)
           percentile_cont(expr: Int16, percentile: Float64)
           percentile_cont(expr: Int32, percentile: Float64)
           percentile_cont(expr: Int64, percentile: Float64)
           percentile_cont(expr: UInt8, percentile: Float64)
           percentile_cont(expr: UInt16, percentile: Float64)
           percentile_cont(expr: UInt32, percentile: Float64)
           percentile_cont(expr: UInt64, percentile: Float64)
           percentile_cont(expr: Float32, percentile: Float64)
           percentile_cont(expr: Float64, percentile: Float64)
   ```
   
   ### Describe the solution you'd like
   
   _No response_
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to