Skip to content

Commit 0c4d0ad

Browse files
authored
Merge branch 'main' into planner-cleanup
2 parents 271c912 + 64f17ee commit 0c4d0ad

File tree

85 files changed

+368
-335
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+368
-335
lines changed

Cargo.lock

Lines changed: 113 additions & 100 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker/debian/meta.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ RUN apt-get update -y && \
99
rm -rf /var/cache/apt/*
1010

1111
COPY ./distro/$TARGETPLATFORM/databend-meta /databend-meta
12+
COPY ./distro/$TARGETPLATFORM/databend-metactl /databend-metactl
1213
ENTRYPOINT ["/databend-meta"]

docker/distroless/meta.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
FROM gcr.io/distroless/cc
22
ARG TARGETPLATFORM
33
COPY ./distro/$TARGETPLATFORM/databend-meta /databend-meta
4+
COPY ./distro/$TARGETPLATFORM/databend-metactl /databend-metactl
45
ENTRYPOINT ["/databend-meta"]

src/common/contexts/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ test = false
1212
common-base = { path = "../base" }
1313

1414
async-trait = "0.1.56"
15-
opendal = { version = "0.17.0", features = ["layers-retry"] }
15+
opendal = { version = "0.17.1", features = ["layers-retry"] }

src/common/exception/src/exception.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ impl From<&str> for ErrorCodeBacktrace {
4545
Self::Serialized(Arc::new(s.to_string()))
4646
}
4747
}
48+
4849
impl From<String> for ErrorCodeBacktrace {
4950
fn from(s: String) -> Self {
5051
Self::Serialized(Arc::new(s))
@@ -138,7 +139,7 @@ impl ErrorCode {
138139
}
139140
}
140141

141-
pub type Result<T> = std::result::Result<T, ErrorCode>;
142+
pub type Result<T, E = ErrorCode> = std::result::Result<T, E>;
142143

143144
impl Debug for ErrorCode {
144145
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {

src/common/storage/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ anyhow = "1.0.64"
1818
backon = "0.1.0"
1919
globiter = "0.1.0"
2020
once_cell = "1.12.0"
21-
opendal = { version = "0.17.0", features = [
21+
opendal = { version = "0.17.1", features = [
2222
"layers-retry",
2323
"layers-tracing",
2424
"layers-metrics",

src/query/catalog/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ common-users = { path = "../users" }
2626

2727
async-trait = "0.1.56"
2828
dyn-clone = "1.0.6"
29-
opendal = { version = "0.17.0", features = ["layers-retry"] }
29+
opendal = { version = "0.17.1", features = ["layers-retry"] }
3030
parking_lot = "0.12.1"

src/query/config/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ common-users = { path = "../users" }
2121
clap = { version = "3.2.5", features = ["derive", "env"] }
2222
hex = "0.4.3"
2323
once_cell = "1.12.0"
24-
opendal = { version = "0.17.0", features = ["layers-retry", "compress"], optional = true }
24+
opendal = { version = "0.17.1", features = ["layers-retry", "compress"], optional = true }
2525
semver = "1.0.10"
2626
serde = { version = "1.0.137", features = ["derive"] }
2727
serfig = "0.0.2"

src/query/config/src/outer_v0.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ impl From<InnerStorageGcsConfig> for GcsStorageConfig {
370370
impl TryInto<InnerStorageGcsConfig> for GcsStorageConfig {
371371
type Error = ErrorCode;
372372

373-
fn try_into(self) -> std::result::Result<InnerStorageGcsConfig, Self::Error> {
373+
fn try_into(self) -> Result<InnerStorageGcsConfig, Self::Error> {
374374
Ok(InnerStorageGcsConfig {
375375
endpoint_url: self.gcs_endpoint_url,
376376
bucket: self.gcs_bucket,

src/query/formats/src/output_format.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ impl Default for OutputFormatType {
222222

223223
impl FromStr for OutputFormatType {
224224
type Err = ErrorCode;
225-
fn from_str(s: &str) -> std::result::Result<Self, ErrorCode> {
225+
fn from_str(s: &str) -> Result<Self> {
226226
FormatFactory::instance().get_output(s)
227227
}
228228
}

0 commit comments

Comments
 (0)