(&self, args: ScalarFunctionArgs)
| 106 | } |
| 107 | |
| 108 | fn invoke_with_args(&self, args: ScalarFunctionArgs) -> Result<ColumnarValue> { |
| 109 | // Fast path for array haystack and scalar needle |
| 110 | if let ( |
| 111 | ColumnarValue::Array(haystack_array), |
| 112 | ColumnarValue::Scalar(needle_scalar), |
| 113 | ) = (&args.args[0], &args.args[1]) |
| 114 | { |
| 115 | return strpos_scalar_needle(haystack_array, needle_scalar); |
| 116 | } |
| 117 | make_scalar_function(strpos, vec![])(&args.args) |
| 118 | } |
| 119 | |
| 120 | fn aliases(&self) -> &[String] { |
| 121 | &self.aliases |
nothing calls this directly
no test coverage detected