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

Method sequence_fields

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

Returns the user-specified sequence field names, if configured. When set, the values of these columns are used as `_SEQUENCE_NUMBER` instead of auto-increment. Multiple fields can be comma-separated (e.g. `"col_a,col_b"`).

(&self)

Source from the content-addressed store, hash-verified

117 /// When set, the values of these columns are used as `_SEQUENCE_NUMBER` instead of auto-increment.
118 /// Multiple fields can be comma-separated (e.g. `"col_a,col_b"`).
119 pub fn sequence_fields(&self) -> Vec<&str> {
120 self.options
121 .get(SEQUENCE_FIELD_OPTION)
122 .map(|s| s.split(',').map(str::trim).collect())
123 .unwrap_or_default()
124 }
125
126 /// Merge engine for primary-key tables. Default is `Deduplicate`.
127 pub fn merge_engine(&self) -> crate::Result<MergeEngine> {

Callers 2

read_kvMethod · 0.80
newMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected