Skip to content

Commit

Permalink
Changed parameter type
Browse files Browse the repository at this point in the history
  • Loading branch information
mykhailo.hevak committed Oct 10, 2022
1 parent a12e04d commit 629f503
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/deltalake/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(
table_uri: str,
version: Optional[int] = None,
storage_options: Optional[Dict[str, str]] = None,
without_files: Optional[bool] = None
without_files: bool = False
):
"""
Create the Delta Table from a path with an optional version.
Expand Down
4 changes: 2 additions & 2 deletions python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl RawDeltaTable {
table_uri: &str,
version: Option<deltalake::DeltaDataTypeLong>,
storage_options: Option<HashMap<String, String>>,
without_files: Option<bool>
without_files: bool
) -> PyResult<Self> {
let mut builder = deltalake::DeltaTableBuilder::from_uri(table_uri);
if let Some(storage_options) = storage_options {
Expand All @@ -116,7 +116,7 @@ impl RawDeltaTable {
builder = builder.with_version(version)
}

if without_files.unwrap_or(false) {
if without_files {
builder = builder.without_files()
}

Expand Down

0 comments on commit 629f503

Please sign in to comment.