-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from JanKaul/feat/file-catalog
Feat/file catalog
- Loading branch information
Showing
9 changed files
with
781 additions
and
24 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[package] | ||
name = "iceberg-file-catalog" | ||
version = "0.5.7" | ||
edition = "2021" | ||
|
||
description = "Filesystem catalog for the unofficial Iceberg table format implementation" | ||
|
||
license = "Apache-2.0" | ||
|
||
repository = "https://github.com/JanKaul/iceberg-rust" | ||
|
||
[dependencies] | ||
async-trait.workspace = true | ||
futures.workspace = true | ||
iceberg-rust = { path = "../iceberg-rust", version = "0.5.7" } | ||
object_store.workspace = true | ||
serde_json.workspace = true | ||
thiserror.workspace = true | ||
url.workspace = true | ||
uuid = { version = "1.7.0", features = ["v4"] } | ||
|
||
[dev-dependencies] | ||
tokio = "1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
use iceberg_rust::error::Error as IcebergError; | ||
use thiserror::Error; | ||
|
||
#[derive(Error, Debug)] | ||
pub enum Error { | ||
#[error("{0}")] | ||
Text(String), | ||
#[error(transparent)] | ||
ParseError(#[from] url::ParseError), | ||
#[error(transparent)] | ||
ParseIntError(#[from] std::num::ParseIntError), | ||
} | ||
|
||
impl From<Error> for IcebergError { | ||
fn from(value: Error) -> Self { | ||
IcebergError::InvalidFormat(value.to_string()) | ||
} | ||
} |
Oops, something went wrong.