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

Method validate_runtime_mode

crates/paimon/src/spec/partial_update.rs:74–88  ·  view source on GitHub ↗
(
        &self,
        has_primary_keys: bool,
        table_name: &str,
    )

Source from the content-addressed store, hash-verified

72 }
73
74 pub(crate) fn validate_runtime_mode(
75 &self,
76 has_primary_keys: bool,
77 table_name: &str,
78 ) -> crate::Result<Option<PartialUpdateMode>> {
79 match self.validated_mode(has_primary_keys) {
80 Ok(mode) => Ok(mode),
81 Err(unsupported_options) => Err(crate::Error::Unsupported {
82 message: format!(
83 "Table '{table_name}' uses merge-engine=partial-update options not supported by this build: {}",
84 unsupported_options.join(", ")
85 ),
86 }),
87 }
88 }
89
90 fn validated_mode(
91 &self,

Callers 3

newMethod · 0.80
newMethod · 0.80

Calls 1

validated_modeMethod · 0.80

Tested by

no test coverage detected