zhuqi-lucas commented on code in PR #14922: URL: https://github.com/apache/datafusion/pull/14922#discussion_r1983010880
########## datafusion/sqllogictest/test_files/aggregate.slt: ########## @@ -132,21 +132,157 @@ statement error DataFusion error: Schema error: Schema contains duplicate unqual SELECT approx_distinct(c9) count_c9, approx_distinct(cast(c9 as varchar)) count_c9_str FROM aggregate_test_100 # csv_query_approx_percentile_cont_with_weight -statement error DataFusion error: Error during planning: Failed to coerce arguments to satisfy a call to 'approx_percentile_cont_with_weight' function: coercion from \[Utf8, Int8, Float64\] to the signature OneOf(.*) failed(.|\n)* +statement error SELECT approx_percentile_cont_with_weight(c1, c2, 0.95) FROM aggregate_test_100 +---- +DataFusion error: Error during planning: Failed to coerce arguments to satisfy a call to 'approx_percentile_cont_with_weight' function: coercion from [Utf8View, Int8, Float64] to the signature OneOf([Exact([Int8, Int8, Float64]), Exact([Int16, Int16, Float64]), Exact([Int32, Int32, Float64]), Exact([Int64, Int64, Float64]), Exact([UInt8, UInt8, Float64]), Exact([UInt16, UInt16, Float64]), Exact([UInt32, UInt32, Float64]), Exact([UInt64, UInt64, Float64]), Exact([Float32, Float32, Float64]), Exact([Float64, Float64, Float64])]) failed No function matches the given name and argument types 'approx_percentile_cont_with_weight(Utf8View, Int8, Float64)'. You might need to add explicit type casts. + Candidate functions: + approx_percentile_cont_with_weight(Int8, Int8, Float64) + approx_percentile_cont_with_weight(Int16, Int16, Float64) + approx_percentile_cont_with_weight(Int32, Int32, Float64) + approx_percentile_cont_with_weight(Int64, Int64, Float64) + approx_percentile_cont_with_weight(UInt8, UInt8, Float64) + approx_percentile_cont_with_weight(UInt16, UInt16, Float64) + approx_percentile_cont_with_weight(UInt32, UInt32, Float64) + approx_percentile_cont_with_weight(UInt64, UInt64, Float64) + approx_percentile_cont_with_weight(Float32, Float32, Float64) + approx_percentile_cont_with_weight(Float64, Float64, Float64) + -statement error DataFusion error: Error during planning: Failed to coerce arguments to satisfy a call to 'approx_percentile_cont_with_weight' function: coercion from \[Int16, Utf8, Float64\] to the signature OneOf(.*) failed(.|\n)* +statement error SELECT approx_percentile_cont_with_weight(c3, c1, 0.95) FROM aggregate_test_100 +---- +DataFusion error: Error during planning: Failed to coerce arguments to satisfy a call to 'approx_percentile_cont_with_weight' function: coercion from [Int16, Utf8View, Float64] to the signature OneOf([Exact([Int8, Int8, Float64]), Exact([Int16, Int16, Float64]), Exact([Int32, Int32, Float64]), Exact([Int64, Int64, Float64]), Exact([UInt8, UInt8, Float64]), Exact([UInt16, UInt16, Float64]), Exact([UInt32, UInt32, Float64]), Exact([UInt64, UInt64, Float64]), Exact([Float32, Float32, Float64]), Exact([Float64, Float64, Float64])]) failed No function matches the given name and argument types 'approx_percentile_cont_with_weight(Int16, Utf8View, Float64)'. You might need to add explicit type casts. + Candidate functions: + approx_percentile_cont_with_weight(Int8, Int8, Float64) + approx_percentile_cont_with_weight(Int16, Int16, Float64) + approx_percentile_cont_with_weight(Int32, Int32, Float64) + approx_percentile_cont_with_weight(Int64, Int64, Float64) + approx_percentile_cont_with_weight(UInt8, UInt8, Float64) + approx_percentile_cont_with_weight(UInt16, UInt16, Float64) + approx_percentile_cont_with_weight(UInt32, UInt32, Float64) + approx_percentile_cont_with_weight(UInt64, UInt64, Float64) + approx_percentile_cont_with_weight(Float32, Float32, Float64) + approx_percentile_cont_with_weight(Float64, Float64, Float64) + -statement error DataFusion error: Error during planning: Failed to coerce arguments to satisfy a call to 'approx_percentile_cont_with_weight' function: coercion from \[Int16, Int8, Utf8\] to the signature OneOf(.*) failed(.|\n)* +statement error SELECT approx_percentile_cont_with_weight(c3, c2, c1) FROM aggregate_test_100 +---- +DataFusion error: Error during planning: Failed to coerce arguments to satisfy a call to 'approx_percentile_cont_with_weight' function: coercion from [Int16, Int8, Utf8View] to the signature OneOf([Exact([Int8, Int8, Float64]), Exact([Int16, Int16, Float64]), Exact([Int32, Int32, Float64]), Exact([Int64, Int64, Float64]), Exact([UInt8, UInt8, Float64]), Exact([UInt16, UInt16, Float64]), Exact([UInt32, UInt32, Float64]), Exact([UInt64, UInt64, Float64]), Exact([Float32, Float32, Float64]), Exact([Float64, Float64, Float64])]) failed No function matches the given name and argument types 'approx_percentile_cont_with_weight(Int16, Int8, Utf8View)'. You might need to add explicit type casts. Review Comment: approx_percentile_cont_with_weight not support utf8view -- 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]
