(udtf: &FFI_TableFunction)
| 183 | } |
| 184 | |
| 185 | unsafe extern "C" fn clone_fn_wrapper(udtf: &FFI_TableFunction) -> FFI_TableFunction { |
| 186 | let runtime = udtf.runtime(); |
| 187 | let udtf_inner = udtf.inner(); |
| 188 | |
| 189 | FFI_TableFunction::new_with_ffi_codec( |
| 190 | Arc::clone(udtf_inner), |
| 191 | runtime, |
| 192 | udtf.logical_codec.clone(), |
| 193 | ) |
| 194 | } |
| 195 | |
| 196 | impl Clone for FFI_TableFunction { |
| 197 | fn clone(&self) -> Self { |