arrow_udf_runtime/lib.rs
1// Copyright 2025 RisingWave Labs
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//! Arrow UDF Runtime
16
17/// Whether the function will be called when some of its arguments are null.
18#[derive(Debug, Default, PartialEq, Eq, PartialOrd, Ord, Clone, Copy)]
19pub enum CallMode {
20 /// The function will be called normally when some of its arguments are null.
21 /// It is then the function author's responsibility to check for null values if necessary and respond appropriately.
22 #[default]
23 CalledOnNullInput,
24
25 /// The function always returns null whenever any of its arguments are null.
26 /// If this parameter is specified, the function is not executed when there are null arguments;
27 /// instead a null result is assumed automatically.
28 ReturnNullOnNullInput,
29}
30
31mod into_field;
32
33#[cfg(feature = "javascript-runtime")]
34pub mod javascript;
35#[cfg(feature = "python-runtime")]
36pub mod python;
37#[cfg(feature = "remote-runtime")]
38pub mod remote;
39#[cfg(feature = "wasm-runtime")]
40pub mod wasm;