MCPcopy Create free account
hub / github.com/apache/paimon-rust / validated_mode

Method validated_mode

crates/paimon/src/spec/partial_update.rs:90–104  ·  view source on GitHub ↗
(
        &self,
        has_primary_keys: bool,
    )

Source from the content-addressed store, hash-verified

88 }
89
90 fn validated_mode(
91 &self,
92 has_primary_keys: bool,
93 ) -> std::result::Result<Option<PartialUpdateMode>, Vec<String>> {
94 if !has_primary_keys || !self.is_enabled() {
95 return Ok(None);
96 }
97
98 let unsupported_options = self.unsupported_option_keys();
99 if !unsupported_options.is_empty() {
100 return Err(unsupported_options);
101 }
102
103 Ok(Some(PartialUpdateMode::Basic))
104 }
105
106 fn unsupported_option_keys(&self) -> Vec<String> {
107 let mut keys: Vec<String> = self

Callers 2

validate_create_modeMethod · 0.80
validate_runtime_modeMethod · 0.80

Calls 3

is_enabledMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected