comphead commented on code in PR #19402:
URL: https://github.com/apache/datafusion/pull/19402#discussion_r2653730569
##########
datafusion/functions/src/string/split_part.rs:
##########
@@ -60,19 +63,16 @@ impl Default for SplitPartFunc {
impl SplitPartFunc {
pub fn new() -> Self {
- use DataType::*;
Self {
- signature: Signature::one_of(
+ signature: Signature::coercible(
vec![
- TypeSignature::Exact(vec![Utf8View, Utf8View, Int64]),
- TypeSignature::Exact(vec![Utf8View, Utf8, Int64]),
- TypeSignature::Exact(vec![Utf8View, LargeUtf8, Int64]),
- TypeSignature::Exact(vec![Utf8, Utf8View, Int64]),
- TypeSignature::Exact(vec![Utf8, Utf8, Int64]),
- TypeSignature::Exact(vec![LargeUtf8, Utf8View, Int64]),
- TypeSignature::Exact(vec![LargeUtf8, Utf8, Int64]),
- TypeSignature::Exact(vec![Utf8, LargeUtf8, Int64]),
- TypeSignature::Exact(vec![LargeUtf8, LargeUtf8, Int64]),
+
Coercion::new_exact(TypeSignatureClass::Native(logical_string())),
Review Comment:
nice, however took sometime to get used to the API
--
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]