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

Method merge_engine

crates/paimon/src/spec/core_options.rs:127–139  ·  view source on GitHub ↗

Merge engine for primary-key tables. Default is `Deduplicate`.

(&self)

Source from the content-addressed store, hash-verified

125
126 /// Merge engine for primary-key tables. Default is `Deduplicate`.
127 pub fn merge_engine(&self) -> crate::Result<MergeEngine> {
128 match self.options.get(MERGE_ENGINE_OPTION) {
129 None => Ok(MergeEngine::Deduplicate),
130 Some(v) => match v.to_ascii_lowercase().as_str() {
131 "deduplicate" => Ok(MergeEngine::Deduplicate),
132 "partial-update" => Ok(MergeEngine::PartialUpdate),
133 "first-row" => Ok(MergeEngine::FirstRow),
134 other => Err(crate::Error::Unsupported {
135 message: format!("Unsupported merge-engine: '{other}'"),
136 }),
137 },
138 }
139 }
140
141 /// Changelog producer setting. Default is "none".
142 pub fn changelog_producer(&self) -> &str {

Callers 5

to_arrowMethod · 0.80
read_pkMethod · 0.80
read_kvMethod · 0.80
newMethod · 0.80
plan_manifest_entriesMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected