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

Method copy

crates/paimon/src/spec/schema.rs:574–582  ·  view source on GitHub ↗

Create a new schema with the same keys/options/comment but different row type

(&self, row_type: RowType)

Source from the content-addressed store, hash-verified

572
573 /// Create a new schema with the same keys/options/comment but different row type
574 pub fn copy(&self, row_type: RowType) -> crate::Result<Self> {
575 Self::new(
576 row_type.fields().to_vec(),
577 self.partition_keys.clone(),
578 self.primary_keys.clone(),
579 self.options.clone(),
580 self.comment.clone(),
581 )
582 }
583
584 /// Create a new builder for configuring a schema.
585 pub fn builder() -> SchemaBuilder {

Callers

nothing calls this directly

Calls 2

to_vecMethod · 0.80
fieldsMethod · 0.45

Tested by

no test coverage detected