goldmedal commented on PR #10917:
URL: https://github.com/apache/datafusion/pull/10917#issuecomment-2171470071
> > External error: statement is expected to fail with error:
> > (regex) DataFusion error: Error during planning: .* No function matches
the given name and argument types
> I usually just remove the error message, although it is not an idea
solution, but I don't know why the CI message is different from local too.
I modified the expected pattern of error message to match the message thrown
in CI flow. The full message is
```
DataFusion error: Error during planning: Error during planning:
Coercion from [Utf8, 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(Utf8, 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)
```
I noticed that the CI flow is missing the tail part of the error message:
`You might need to add explicit type casts....`. There might be a length
limitation for the error message, but I'm not sure. Just making a note of it
here.
--
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]