Skip to content

Commit 65eb13a

Browse files
authored
feat(file_index): add file index format read and write (#63)
1 parent fb27ca4 commit 65eb13a

File tree

6 files changed

+576
-24
lines changed

6 files changed

+576
-24
lines changed

crates/paimon/Cargo.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ serde_json = "1.0.120"
4646
serde_with = "3.9.0"
4747
snafu = "0.8.3"
4848
typed-builder = "^0.19"
49-
opendal = { version = "0.49",features = ["services-fs"] }
49+
opendal = { version = "0.49", features = ["services-fs"] }
5050
pretty_assertions = "1"
51-
apache-avro = { version = "0.17", features = ["snappy"] }
51+
apache-avro = { version = "0.17", features = ["snappy"] }
52+
53+
[dev-dependencies]
54+
rand = "0.8.5"

crates/paimon/src/error.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ pub enum Error {
6060
message: String,
6161
source: apache_avro::Error,
6262
},
63+
#[snafu(
64+
visibility(pub(crate)),
65+
display("Paimon hitting invalid file index format: {}", message)
66+
)]
67+
FileIndexFormatInvalid { message: String },
6368
}
6469

6570
impl From<opendal::Error> for Error {

0 commit comments

Comments
 (0)