Skip to content

Commit 73a10b8

Browse files
committed
update
1 parent e01c626 commit 73a10b8

File tree

30 files changed

+62
-29
lines changed

30 files changed

+62
-29
lines changed

.typos.toml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
extend-ignore-re = [
66
"(?Rm)^.*(#|//)\\s*typos:disable-line$",
77
"(#|//)\\s*typos:ignore-next-line\\n.*",
8+
"(?s)(#|//)\\s*typos:off.*?\\n\\s*(#|//)\\s*typos:on",
89
]
910

1011
[default.extend-words]
@@ -28,5 +29,29 @@ into_flate2 = "into_flate2"
2829
extend-exclude = [
2930
"**/Cargo.toml",
3031
"benchmark/",
31-
"tests/",
32+
"tests/sqllogictests",
33+
"tests/nox/java_client/testng.xml",
34+
"tests/data/ddl",
3235
]
36+
37+
# todo: fix me
38+
[type.py]
39+
check-file = false
40+
41+
# todo: fix me
42+
[type.sh]
43+
check-file = false
44+
45+
[type.txt]
46+
check-file = false
47+
48+
[type.sql]
49+
check-file = false
50+
51+
[type.csr]
52+
extend-glob = ["*.csr"]
53+
check-file = false
54+
55+
[type.result]
56+
extend-glob = ["*.result"]
57+
check-file = false

src/common/io/tests/it/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ mod borsh_serialization;
2424
mod cursor_ext;
2525
mod escape;
2626
mod interval;
27-
mod serialization_format_compatability;
27+
mod serialization_format_compatibility;
File renamed without changes.

src/meta/proto-conv/tests/it/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ where MT: FromToProto + PartialEq + Debug {
3232
prost::Message::encode(&p, &mut buf)?;
3333

3434
let var_name = n.split("::").last().unwrap();
35-
// The encoded data should be saved for compatability test.
35+
// The encoded data should be saved for compatibility test.
3636
println!("// Encoded data of version {} of {}:", VER, n);
3737
println!("// It is generated with common::test_pb_from_to().");
3838
println!(

src/meta/proto-conv/tests/it/v137_add_grant_object_connection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ fn test_decode_v137_grant_object() -> anyhow::Result<()> {
5959
mt::principal::GrantObject::Connection("c1".to_string()),
6060
make_bitflags!(UserPrivilegeType::{AccessConnection}),
6161
),
62-
// test new global privilege CreateConneciton, AccessConnection
62+
// test new global privilege CreateConnection, AccessConnection
6363
mt::principal::GrantEntry::new(
6464
mt::principal::GrantObject::Global,
6565
make_bitflags!(UserPrivilegeType::{Create | Select | Insert | Update | Delete | Drop | Alter | Super | CreateUser | DropUser | CreateRole | DropRole | Grant | CreateStage | Set | CreateDataMask | Ownership | Read | Write | CreateWarehouse | CreateConnection | AccessConnection }),

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ SELECT * from s;"#,
302302
r#"ALTER TABLE t CLUSTER BY(c1);"#,
303303
r#"ALTER TABLE t1 swap with t2;"#,
304304
r#"ALTER TABLE t refresh cache;"#,
305-
r#"ALTER TABLE t COMMENT='t1-commnet';"#,
305+
r#"ALTER TABLE t COMMENT='t1-commnet';"#, // typos:disable-line
306306
r#"ALTER TABLE t DROP CLUSTER KEY;"#,
307307
r#"ALTER TABLE t RECLUSTER FINAL WHERE c1 > 0 LIMIT 10;"#,
308308
r#"ALTER TABLE t ADD c int null;"#,
@@ -1049,7 +1049,7 @@ fn test_statement_error() {
10491049
r#"GRANT select ON UDF a TO 'test-grant';"#,
10501050
r#"REVOKE SELECT, CREATE, ALL PRIVILEGES ON * FROM 'test-grant';"#,
10511051
r#"REVOKE SELECT, CREATE ON * TO 'test-grant';"#,
1052-
r#"COPY INTO mytable FROM 's3://bucket' CONECTION= ();"#,
1052+
r#"COPY INTO mytable FROM 's3://bucket' CONECTION= ();"#, // typos:disable-line
10531053
r#"COPY INTO mytable FROM @mystage CONNECTION = ();"#,
10541054
r#"CALL system$test"#,
10551055
r#"CALL system$test(a"#,

src/query/ee/tests/it/aggregating_index/index_scan.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -702,13 +702,13 @@ async fn fuzz(ctx: Arc<QueryContext>, params: FuzzParams) -> Result<()> {
702702
let actual = DataBlock::concat(&actual)?;
703703
let actual = DataBlock::sort(&actual, &get_sort_col_descs(actual.num_columns()), None)?;
704704

705-
let formated_expect = pretty_format_blocks(&[expect])?;
706-
let formated_actual = pretty_format_blocks(&[actual])?;
705+
let formatted_expect = pretty_format_blocks(&[expect])?;
706+
let formatted_actual = pretty_format_blocks(&[actual])?;
707707

708708
assert_eq!(
709-
formated_expect, formated_actual,
709+
formatted_expect, formatted_actual,
710710
"Test params:{}\nExpected data block:\n{}\nActual data block:\n{}\n",
711-
fuzz_info, formated_expect, formated_actual
711+
fuzz_info, formatted_expect, formatted_actual
712712
);
713713

714714
// Clear

src/query/ee/tests/it/inverted_index/pruning.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ async fn test_block_pruner() -> Result<()> {
336336
"Spill the beans".to_string(),
337337
]),
338338
StringType::from_data(vec![
339-
"Put a projet on hold".to_string(),
339+
"Put a projet on hold".to_string(), // typos:disable-line
340340
"To spoil something".to_string(),
341341
"Saving money for later".to_string(),
342342
"Reliability is more important than speed".to_string(),

src/query/ee/tests/it/storages/fuse/operations/vacuum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ async fn test_vacuum_dropped_table_clean_ownership() -> Result<()> {
729729
let v = meta.get_pb(&table_ownership_key).await?;
730730
assert!(v.is_none());
731731

732-
// 8. Chek that DbIdTableName mapping is cleaned up
732+
// 8. Check that DbIdTableName mapping is cleaned up
733733
let (seq, _) = get_u64_value(&meta, &db_id_table_name).await?;
734734
assert_eq!(seq, 0);
735735

src/query/expression/tests/it/meta_scalar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ pub fn test_simple_converts() -> databend_common_exception::Result<()> {
9494
assert_eq!(scalar, convert_back_scalar);
9595
}
9696

97-
// TODO: comment these when we swith string in scalar
97+
// TODO: comment these when we switch string in scalar
9898
// let data = rmp_serde::to_vec(&scalars).unwrap();
9999
// let new_scalars: Vec<IndexScalar> = rmp_serde::from_slice(&data).unwrap();
100100
// assert_eq!(simple_scalars, new_scalars);

0 commit comments

Comments
 (0)