Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/github_actions/crate-ci/typos-1.28.3
Browse files Browse the repository at this point in the history
  • Loading branch information
liurenjie1024 authored Dec 16, 2024
2 parents a5baedf + 821f8dd commit fa7e479
Show file tree
Hide file tree
Showing 11 changed files with 302 additions and 452 deletions.
6 changes: 3 additions & 3 deletions crates/catalog/memory/src/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ mod tests {
use std::iter::FromIterator;

use iceberg::io::FileIOBuilder;
use iceberg::spec::{BoundPartitionSpec, NestedField, PrimitiveType, Schema, SortOrder, Type};
use iceberg::spec::{NestedField, PartitionSpec, PrimitiveType, Schema, SortOrder, Type};
use regex::Regex;
use tempfile::TempDir;

Expand Down Expand Up @@ -357,7 +357,7 @@ mod tests {

assert_eq!(metadata.current_schema().as_ref(), expected_schema);

let expected_partition_spec = BoundPartitionSpec::builder((*expected_schema).clone())
let expected_partition_spec = PartitionSpec::builder((*expected_schema).clone())
.with_spec_id(0)
.build()
.unwrap();
Expand All @@ -367,7 +367,7 @@ mod tests {
.partition_specs_iter()
.map(|p| p.as_ref())
.collect_vec(),
vec![&expected_partition_spec.into_schemaless()]
vec![&expected_partition_spec]
);

let expected_sorted_order = SortOrder::builder()
Expand Down
7 changes: 3 additions & 4 deletions crates/catalog/sql/src/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ mod tests {
use std::hash::Hash;

use iceberg::io::FileIOBuilder;
use iceberg::spec::{BoundPartitionSpec, NestedField, PrimitiveType, Schema, SortOrder, Type};
use iceberg::spec::{NestedField, PartitionSpec, PrimitiveType, Schema, SortOrder, Type};
use iceberg::table::Table;
use iceberg::{Catalog, Namespace, NamespaceIdent, TableCreation, TableIdent};
use itertools::Itertools;
Expand Down Expand Up @@ -876,11 +876,10 @@ mod tests {

assert_eq!(metadata.current_schema().as_ref(), expected_schema);

let expected_partition_spec = BoundPartitionSpec::builder(expected_schema.clone())
let expected_partition_spec = PartitionSpec::builder(expected_schema.clone())
.with_spec_id(0)
.build()
.unwrap()
.into_schemaless();
.unwrap();

assert_eq!(
metadata
Expand Down
Loading

0 comments on commit fa7e479

Please sign in to comment.