Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
generate_signature_error_msg in datafusion_expr::utils - Rust
[go: Go Back, main page]

Function generate_signature_error_msg

Source
pub fn generate_signature_error_msg(
    func_name: &str,
    func_signature: Signature,
    input_expr_types: &[DataType],
) -> String
Expand description

Creates a detailed error message for a function with wrong signature.

For example, a query like select round(3.14, 1.1); would yield:

Error during planning: No function matches 'round(Float64, Float64)'. You might need to add explicit type casts.
    Candidate functions:
    round(Float64, Int64)
    round(Float32, Int64)
    round(Float64)
    round(Float32)