Skip to content

Commit

Permalink
from_valid_uri test, path must actually exist
Browse files Browse the repository at this point in the history
  • Loading branch information
rtyler committed Dec 29, 2023
1 parent 725c3c3 commit bbe18c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/deltalake-core/src/table/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ impl DeltaTableBuilder {
///
/// ```rust
/// # use deltalake_core::table::builder::*;
/// let builder = DeltaTableBuilder::from_valid_uri("/tmp/deltars-test/path");
/// assert!(builder.is_ok());
/// let builder = DeltaTableBuilder::from_valid_uri("/tmp");
/// assert!(builder.is_ok(), "Builder failed with {builder:?}");
/// ```
pub fn from_valid_uri(table_uri: impl AsRef<str>) -> DeltaResult<Self> {
if let Ok(url) = Url::parse(table_uri.as_ref()) {
Expand Down

0 comments on commit bbe18c4

Please sign in to comment.