Skip to content

Commit

Permalink
Add UnboundSortOrder (#115)
Browse files Browse the repository at this point in the history
* Add UnboundSortOrder

* Separate build methods for bound and unbound

* Use a constant for unsorted order_id
  • Loading branch information
fqaiser94 authored Feb 20, 2024
1 parent b6bbd1d commit d251904
Show file tree
Hide file tree
Showing 5 changed files with 358 additions and 20 deletions.
2 changes: 1 addition & 1 deletion crates/catalog/rest/src/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,7 @@ mod tests {
.null_order(NullOrder::First)
.build(),
)
.build()
.build_unbound()
.unwrap(),
)
.build();
Expand Down
7 changes: 3 additions & 4 deletions crates/iceberg/src/catalog/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,19 @@

//! Catalog API for Apache Iceberg

use serde_derive::{Deserialize, Serialize};
use urlencoding::encode;

use crate::spec::{
FormatVersion, Schema, Snapshot, SnapshotReference, SortOrder, UnboundPartitionSpec,
};
use crate::table::Table;
use crate::{Error, ErrorKind, Result};
use async_trait::async_trait;
use serde_derive::{Deserialize, Serialize};
use std::collections::HashMap;
use std::fmt::Debug;
use std::mem::take;
use std::ops::Deref;
use typed_builder::TypedBuilder;
use urlencoding::encode;
use uuid::Uuid;

/// The catalog API for Iceberg Rust.
Expand Down Expand Up @@ -866,7 +865,7 @@ mod tests {
.transform(Transform::Bucket(4))
.build(),
)
.build()
.build_unbound()
.unwrap(),
};

Expand Down
Loading

0 comments on commit d251904

Please sign in to comment.