Skip to content

Commit

Permalink
fix: consistently use raise_if_key_not_exists in CreateBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
vegarsti committed Jun 4, 2024
1 parent b64335d commit 8861404
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/core/src/operations/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ impl CreateBuilder {
}

/// Specify whether to raise an error if the table properties in the configuration are not DeltaConfigKeys
pub fn with_raise_if_not_exists(mut self, raise_if_key_not_exists: bool) -> Self {
pub fn with_raise_if_key_not_exists(mut self, raise_if_key_not_exists: bool) -> Self {
self.raise_if_key_not_exists = raise_if_key_not_exists;
self
}
Expand Down Expand Up @@ -598,7 +598,7 @@ mod tests {
let table = CreateBuilder::new()
.with_location("memory://")
.with_columns(schema.fields().clone())
.with_raise_if_not_exists(false)
.with_raise_if_key_not_exists(false)
.with_configuration(config)
.await;
assert!(table.is_ok());
Expand Down
2 changes: 1 addition & 1 deletion python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1670,7 +1670,7 @@ fn create_deltalake(
.create()
.with_columns(schema.fields().clone())
.with_save_mode(mode)
.with_raise_if_not_exists(raise_if_key_not_exists)
.with_raise_if_key_not_exists(raise_if_key_not_exists)
.with_partition_columns(partition_by);

if let Some(name) = &name {
Expand Down

0 comments on commit 8861404

Please sign in to comment.