Skip to content

Commit 44a4196

Browse files
committed
update
1 parent b113601 commit 44a4196

File tree

16 files changed

+17
-14
lines changed

16 files changed

+17
-14
lines changed

.typos.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ extend-ignore-re = [
1212
# Preserved for NdJson
1313
Nd = "Nd"
1414
typ = "typ"
15+
aranges = "aranges"
1516

1617
[default.extend-identifiers]
1718

src/common/hashtable/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ pub struct MergeIntoBlockInfoIndex {
234234
pub type Interval = (u32, u32);
235235

236236
/// the segment blocks are not sequential,because we do parallel hashtable build.
237-
/// the block lay out in chunks could be like belows:
237+
/// the block lay out in chunks could be like bellows:
238238
/// segment0_block1 |
239239
/// segment1_block0 | chunk0
240240
/// segment0_block0 |

src/meta/raft-store/src/state/raft_state_kv.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ pub enum RaftStateKey {
3131
/// The node id.
3232
Id,
3333

34+
// typos:ignore-next-line
3435
/// Hard state of the raft log, including `current_term` and `voted_vor`.
3536
HardState,
3637

src/meta/types/src/sys_data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ mod tests {
216216
assert_eq!(want, serialized);
217217
}
218218

219-
/// Test serialze will all fields set.
219+
/// Test serialize will all fields set.
220220
#[test]
221221
fn test_sys_data_serialize() {
222222
let sys_data = SysData {

src/query/ast/src/parser/error_suggestion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ mod tests {
246246
Some("Did you mean `SHOW TABLE FUNCTIONS` or `SHOW TABLES`?".to_string())
247247
);
248248
assert_eq!(
249-
suggest_correction("vacum drop table"),
249+
suggest_correction("vacum drop table"), // typos:disable-line
250250
Some("Did you mean `VACUUM DROP TABLE`?".to_string())
251251
);
252252
assert_eq!(

src/query/ast/src/parser/statement.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3298,7 +3298,7 @@ pub fn column_def(i: Input) -> IResult<ColumnDefinition> {
32983298
value(ColumnConstraint::Nullable(true), rule! { NULL }),
32993299
value(ColumnConstraint::Nullable(false), rule! { NOT ~ ^NULL }),
33003300
));
3301-
let identity_parmas = alt((
3301+
let identity_params = alt((
33023302
map(
33033303
rule! {
33043304
"(" ~ ^#literal_u64 ~ ^"," ~ ^#literal_i64 ~ ^")"
@@ -3341,7 +3341,7 @@ pub fn column_def(i: Input) -> IResult<ColumnDefinition> {
33413341
map(
33423342
rule! {
33433343
(AUTOINCREMENT | IDENTITY)
3344-
~ #identity_parmas?
3344+
~ #identity_params?
33453345
~ (ORDER | NOORDER)?
33463346
},
33473347
|(_, params, order_token)| {

src/query/ast/tests/it/parser.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,6 +1097,7 @@ fn test_statement_error() {
10971097
r#"GRANT OWNERSHIP ON *.* TO ROLE 'd20_0015_owner';"#,
10981098
r#"CREATE FUNCTION IF NOT EXISTS isnotempty AS(p) -> not(is_null(p)"#,
10991099
r#"CREATE FUNCTION my_agg (INT) STATE { s STRING } RETURNS BOOLEAN LANGUAGE javascript HANDLER = 'my_agg' ADDRESS = 'http://0.0.0.0:8815';"#,
1100+
// typos:ignore-next-line
11001101
r#"CREATE FUNCTION my_agg (INT) STATE { s STRIN } RETURNS BOOLEAN LANGUAGE javascript ADDRESS = 'http://0.0.0.0:8815';"#,
11011102
r#"drop table :a"#,
11021103
r#"drop table IDENTIFIER(a)"#,

src/query/service/src/physical_plans/physical_mutation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ impl PhysicalPlanBuilder {
433433
DUMMY_COLUMN_INDEX
434434
};
435435

436-
// For distributed merge, we shuffle data blocks by block_id (drived from row_id) to avoid
436+
// For distributed merge, we shuffle data blocks by block_id (derived from row_id) to avoid
437437
// different nodes update the same physical block simultaneously, data blocks that are needed
438438
// to insert just keep in local node.
439439
if *distributed && *row_id_shuffle && !is_not_matched_only {

src/query/service/src/servers/flight/v1/actions/flight_actions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl FlightActions {
9595
let future = CatchUnwindFuture::create(future);
9696
match future
9797
.await
98-
.with_context(|| "failed to do filght action")
98+
.with_context(|| "failed to do flight action")
9999
.flatten()
100100
{
101101
Ok(v) => {

src/query/service/src/sessions/session_privilege_mgr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ impl SessionPrivilegeManager for SessionPrivilegeManagerImpl<'_> {
171171
/// If secondary_roles is set, it must be ALL or NONE:
172172
/// 1. ALL: all the roles granted to the current user will have effects on validate_privilege,
173173
/// `secondary_roles` will be set to None, which is default.
174-
/// 2. NONE: only the current_role has effects on validate_privilge, `secondary_roles`
174+
/// 2. NONE: only the current_role has effects on validate_privilege, `secondary_roles`
175175
/// will be set to Some([]).
176176
/// 3. SpecifyRoles: Some([role1, role2, .. etc.]).
177177
#[async_backtrace::framed]

0 commit comments

Comments
 (0)