Skip to content

Commit c7b5bb2

Browse files
committed
Merge remote-tracking branch 'origin/main' into zhongzc/ssts-systable
2 parents 7a3e908 + ad690e1 commit c7b5bb2

File tree

1,040 files changed

+7681
-5726
lines changed

Some content is hidden

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

1,040 files changed

+7681
-5726
lines changed

Cargo.lock

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ resolver = "2"
7474

7575
[workspace.package]
7676
version = "0.18.0"
77-
edition = "2021"
77+
edition = "2024"
7878
license = "Apache-2.0"
7979

8080
[workspace.lints]
@@ -145,7 +145,7 @@ etcd-client = { git = "https://github.com/GreptimeTeam/etcd-client", rev = "f62d
145145
fst = "0.4.7"
146146
futures = "0.3"
147147
futures-util = "0.3"
148-
greptime-proto = { git = "https://github.com/GreptimeTeam/greptime-proto.git", rev = "66eb089afa6baaa3ddfafabd0a4abbe317d012c3" }
148+
greptime-proto = { git = "https://github.com/GreptimeTeam/greptime-proto.git", rev = "f9836cf8aab30e672f640c6ef4c1cfd2cf9fbc36" }
149149
hex = "0.4"
150150
http = "1"
151151
humantime = "2.1"

src/api/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ use common_error::status_code::StatusCode;
1919
use common_macro::stack_trace_debug;
2020
use common_time::timestamp::TimeUnit;
2121
use datatypes::prelude::ConcreteDataType;
22-
use snafu::prelude::*;
2322
use snafu::Location;
23+
use snafu::prelude::*;
2424

2525
pub type Result<T> = std::result::Result<T, Error>;
2626

src/api/src/helper.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ use std::collections::HashSet;
1616
use std::sync::Arc;
1717

1818
use common_base::BitVec;
19-
use common_decimal::decimal128::{DECIMAL128_DEFAULT_SCALE, DECIMAL128_MAX_PRECISION};
2019
use common_decimal::Decimal128;
20+
use common_decimal::decimal128::{DECIMAL128_DEFAULT_SCALE, DECIMAL128_MAX_PRECISION};
2121
use common_time::time::Time;
2222
use common_time::timestamp::TimeUnit;
2323
use common_time::{Date, IntervalDayTime, IntervalMonthDayNano, IntervalYearMonth, Timestamp};
2424
use datatypes::prelude::{ConcreteDataType, ValueRef};
2525
use datatypes::scalars::ScalarVector;
2626
use datatypes::types::{
27-
Int16Type, Int8Type, IntervalType, TimeType, TimestampType, UInt16Type, UInt8Type,
27+
Int8Type, Int16Type, IntervalType, TimeType, TimestampType, UInt8Type, UInt16Type,
2828
};
2929
use datatypes::value::{OrderedF32, OrderedF64, Value};
3030
use datatypes::vectors::{
@@ -295,7 +295,7 @@ impl TryFrom<ConcreteDataType> for ColumnDataTypeWrapper {
295295
| ConcreteDataType::Struct(_)
296296
| ConcreteDataType::Dictionary(_)
297297
| ConcreteDataType::Duration(_) => {
298-
return error::IntoColumnDataTypeSnafu { from: datatype }.fail()
298+
return error::IntoColumnDataTypeSnafu { from: datatype }.fail();
299299
}
300300
};
301301
let datatype_extension = match column_datatype {

src/api/src/v1/column_def.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
use std::collections::HashMap;
1616

1717
use datatypes::schema::{
18-
ColumnDefaultConstraint, ColumnSchema, FulltextAnalyzer, FulltextBackend, FulltextOptions,
19-
SkippingIndexOptions, SkippingIndexType, COMMENT_KEY, FULLTEXT_KEY, INVERTED_INDEX_KEY,
20-
SKIPPING_INDEX_KEY,
18+
COMMENT_KEY, ColumnDefaultConstraint, ColumnSchema, FULLTEXT_KEY, FulltextAnalyzer,
19+
FulltextBackend, FulltextOptions, INVERTED_INDEX_KEY, SKIPPING_INDEX_KEY, SkippingIndexOptions,
20+
SkippingIndexType,
2121
};
2222
use greptime_proto::v1::{
2323
Analyzer, FulltextBackend as PbFulltextBackend, SkippingIndexType as PbSkippingIndexType,

src/auth/src/common.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ use std::sync::Arc;
1717
use common_base::secrets::SecretString;
1818
use digest::Digest;
1919
use sha1::Sha1;
20-
use snafu::{ensure, OptionExt};
20+
use snafu::{OptionExt, ensure};
2121

2222
use crate::error::{IllegalParamSnafu, InvalidConfigSnafu, Result, UserPasswordMismatchSnafu};
2323
use crate::user_info::DefaultUserInfo;
24-
use crate::user_provider::static_user_provider::{StaticUserProvider, STATIC_USER_PROVIDER};
24+
use crate::user_provider::static_user_provider::{STATIC_USER_PROVIDER, StaticUserProvider};
2525
use crate::user_provider::watch_file_user_provider::{
26-
WatchFileUserProvider, WATCH_FILE_USER_PROVIDER,
26+
WATCH_FILE_USER_PROVIDER, WatchFileUserProvider,
2727
};
2828
use crate::{UserInfoRef, UserProviderRef};
2929

src/auth/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ mod user_provider;
2222
pub mod tests;
2323

2424
pub use common::{
25-
auth_mysql, static_user_provider_from_option, user_provider_from_option, userinfo_by_name,
26-
HashedPassword, Identity, Password,
25+
HashedPassword, Identity, Password, auth_mysql, static_user_provider_from_option,
26+
user_provider_from_option, userinfo_by_name,
2727
};
2828
pub use permission::{PermissionChecker, PermissionReq, PermissionResp};
2929
pub use user_info::UserInfo;
30-
pub use user_provider::static_user_provider::StaticUserProvider;
3130
pub use user_provider::UserProvider;
31+
pub use user_provider::static_user_provider::StaticUserProvider;
3232

3333
/// pub type alias
3434
pub type UserInfoRef = std::sync::Arc<dyn UserInfo>;

src/auth/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use crate::error::{
2121
UserPasswordMismatchSnafu,
2222
};
2323
use crate::user_info::DefaultUserInfo;
24-
use crate::{auth_mysql, Identity, Password, UserInfoRef, UserProvider};
24+
use crate::{Identity, Password, UserInfoRef, UserProvider, auth_mysql};
2525

2626
pub struct DatabaseAuthInfo<'a> {
2727
pub catalog: &'a str,

src/auth/src/user_provider.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ use std::io::BufRead;
2222
use std::path::Path;
2323

2424
use common_base::secrets::ExposeSecret;
25-
use snafu::{ensure, OptionExt, ResultExt};
25+
use snafu::{OptionExt, ResultExt, ensure};
2626

2727
use crate::common::{Identity, Password};
2828
use crate::error::{
2929
IllegalParamSnafu, InvalidConfigSnafu, IoSnafu, Result, UnsupportedPasswordTypeSnafu,
3030
UserNotFoundSnafu, UserPasswordMismatchSnafu,
3131
};
3232
use crate::user_info::DefaultUserInfo;
33-
use crate::{auth_mysql, UserInfoRef};
33+
use crate::{UserInfoRef, auth_mysql};
3434

3535
#[async_trait::async_trait]
3636
pub trait UserProvider: Send + Sync {

src/auth/src/user_provider/static_user_provider.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ pub mod test {
102102

103103
use common_test_util::temp_dir::create_temp_dir;
104104

105+
use crate::UserProvider;
105106
use crate::user_info::DefaultUserInfo;
106107
use crate::user_provider::static_user_provider::StaticUserProvider;
107108
use crate::user_provider::{Identity, Password};
108-
use crate::UserProvider;
109109

110110
async fn test_authenticate(provider: &dyn UserProvider, username: &str, password: &str) {
111111
let re = provider
@@ -143,12 +143,13 @@ pub mod test {
143143
let file = File::create(&file_path);
144144
let file = file.unwrap();
145145
let mut lw = LineWriter::new(file);
146-
assert!(lw
147-
.write_all(
146+
assert!(
147+
lw.write_all(
148148
b"root=123456
149149
admin=654321",
150150
)
151-
.is_ok());
151+
.is_ok()
152+
);
152153
lw.flush().unwrap();
153154
}
154155

0 commit comments

Comments
 (0)