We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc3bca7 commit cae83cbCopy full SHA for cae83cb
crates/iceberg/src/spec/partition.rs
@@ -133,25 +133,6 @@ impl UnboundPartitionSpec {
133
pub fn builder() -> UnboundPartitionSpecBuilder {
134
UnboundPartitionSpecBuilder::default()
135
}
136
-
137
- /// Create a [`PartitionSpec`] for a new table. So it don't need
138
- /// to specify the partition id for each field.
139
- pub fn create_new(self) -> PartitionSpec {
140
- PartitionSpec {
141
- spec_id: self.spec_id.unwrap_or(0),
142
- fields: self
143
- .fields
144
- .into_iter()
145
- .enumerate()
146
- .map(|(field_id, f)| PartitionField {
147
- source_id: f.source_id,
148
- field_id: f.partition_id.unwrap_or(field_id as i32),
149
- name: f.name,
150
- transform: f.transform,
151
- })
152
- .collect(),
153
- }
154
155
156
157
#[cfg(test)]
0 commit comments