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

Method with_projection

crates/paimon/src/table/read_builder.rs:138–141  ·  view source on GitHub ↗

Set column projection by name. Output order follows the caller-specified order. Unknown or duplicate names cause `new_read()` to fail; an empty list is a valid zero-column projection.

(&mut self, columns: &[&str])

Source from the content-addressed store, hash-verified

136 /// Unknown or duplicate names cause `new_read()` to fail; an empty list is a valid
137 /// zero-column projection.
138 pub fn with_projection(&mut self, columns: &[&str]) -> &mut Self {
139 self.projected_fields = Some(columns.iter().map(|c| (*c).to_string()).collect());
140 self
141 }
142
143 /// Set a filter predicate for scan planning and conservative read pruning.
144 ///

Calls 1

iterMethod · 0.45