pub struct UserDefinedFunction {Show 16 fields
pub children: Vec<ExprNode>,
pub name: String,
pub arg_names: Vec<String>,
pub arg_types: Vec<DataType>,
pub language: String,
pub link: Option<String>,
pub identifier: Option<String>,
pub body: Option<String>,
pub compressed_binary: Option<Vec<u8>>,
pub always_retry_on_network_error: bool,
pub runtime: Option<String>,
pub is_async: Option<bool>,
pub is_batched: Option<bool>,
pub unsafe_skip_materializing_exprs: bool,
pub is_immutable: bool,
pub version: i32,
}Fields§
§children: Vec<ExprNode>§name: String§arg_names: Vec<String>§arg_types: Vec<DataType>§language: String§link: Option<String>The link to the external function service.
identifier: Option<String>This is re-interpreted as name_in_runtime.
body: Option<String>- If
languageisjavascriptorpython, the source code of the function.
compressed_binary: Option<Vec<u8>>- If
languageisrustorwasm, the zstd-compressed wasm binary.
always_retry_on_network_error: bool§runtime: Option<String>The runtime selected when multiple runtimes are available for the language. Now is not used.
is_async: Option<bool>additional options for javascript functions
is_batched: Option<bool>§unsafe_skip_materializing_exprs: boolUnsafe: whether to skip materializing evaluated results of this function for retractable streams. This must travel with persisted expressions, such as generated columns.
is_immutable: boolWhether the function is declared IMMUTABLE. This must travel with persisted expressions,
such as generated columns.
version: i32Implementations§
Source§impl UserDefinedFunction
impl UserDefinedFunction
Sourcepub fn identifier(&self) -> &str
pub fn identifier(&self) -> &str
Returns the value of identifier, or the default value if identifier is unset.
Sourcepub fn compressed_binary(&self) -> &[u8] ⓘ
pub fn compressed_binary(&self) -> &[u8] ⓘ
Returns the value of compressed_binary, or the default value if compressed_binary is unset.
Sourcepub fn runtime(&self) -> &str
pub fn runtime(&self) -> &str
Returns the value of runtime, or the default value if runtime is unset.
Sourcepub fn is_async(&self) -> bool
pub fn is_async(&self) -> bool
Returns the value of is_async, or the default value if is_async is unset.
Sourcepub fn is_batched(&self) -> bool
pub fn is_batched(&self) -> bool
Returns the value of is_batched, or the default value if is_batched is unset.
Sourcepub fn version(&self) -> UdfExprVersion
pub fn version(&self) -> UdfExprVersion
Returns the enum value of version, or the default if the field is set to an invalid enum value.
Sourcepub fn set_version(&mut self, value: UdfExprVersion)
pub fn set_version(&mut self, value: UdfExprVersion)
Sets version to the provided enum value.
Source§impl UserDefinedFunction
impl UserDefinedFunction
pub fn get_children(&self) -> &Vec<ExprNode>
pub fn get_name(&self) -> &String
pub fn get_arg_names(&self) -> &Vec<String>
pub fn get_arg_types(&self) -> &Vec<DataType>
pub fn get_language(&self) -> &String
pub fn get_link(&self) -> Result<&String, PbFieldNotFound>
pub fn get_identifier(&self) -> Result<&String, PbFieldNotFound>
pub fn get_body(&self) -> Result<&String, PbFieldNotFound>
pub fn get_compressed_binary(&self) -> Result<&Vec<u8>, PbFieldNotFound>
pub fn get_always_retry_on_network_error(&self) -> bool
pub fn get_runtime(&self) -> Result<&String, PbFieldNotFound>
pub fn get_is_async(&self) -> Result<&bool, PbFieldNotFound>
pub fn get_is_batched(&self) -> Result<&bool, PbFieldNotFound>
pub fn get_unsafe_skip_materializing_exprs(&self) -> bool
pub fn get_is_immutable(&self) -> bool
pub fn get_version(&self) -> Result<UdfExprVersion, PbFieldNotFound>
Source§impl UserDefinedFunction
impl UserDefinedFunction
pub fn name_in_runtime(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for UserDefinedFunction
impl Clone for UserDefinedFunction
Source§fn clone(&self) -> UserDefinedFunction
fn clone(&self) -> UserDefinedFunction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UserDefinedFunction
impl Debug for UserDefinedFunction
Source§impl Default for UserDefinedFunction
impl Default for UserDefinedFunction
Source§impl<'de> Deserialize<'de> for UserDefinedFunction
impl<'de> Deserialize<'de> for UserDefinedFunction
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
impl Eq for UserDefinedFunction
Source§impl Hash for UserDefinedFunction
impl Hash for UserDefinedFunction
Source§impl Message for UserDefinedFunction
impl Message for UserDefinedFunction
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for UserDefinedFunction
impl PartialEq for UserDefinedFunction
Source§fn eq(&self, other: &UserDefinedFunction) -> bool
fn eq(&self, other: &UserDefinedFunction) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for UserDefinedFunction
impl Serialize for UserDefinedFunction
impl StructuralPartialEq for UserDefinedFunction
Auto Trait Implementations§
impl Freeze for UserDefinedFunction
impl RefUnwindSafe for UserDefinedFunction
impl Send for UserDefinedFunction
impl Sync for UserDefinedFunction
impl Unpin for UserDefinedFunction
impl UnsafeUnpin for UserDefinedFunction
impl UnwindSafe for UserDefinedFunction
Blanket Implementations§
impl<T> Allocation for T
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
U: Sized,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
U: Sized,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Any.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].