mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-14 01:02:55 +00:00
chore: replace result assertions (#1840)
* s/assert!\((.*)\.is_ok\(\)\);/\1.unwrap\(\);/g * s/assert!\((.*)\.is_some\(\)\);/\1.unwrap\(\);/g
This commit is contained in:
@@ -931,7 +931,7 @@ PARTITION BY RANGE COLUMNS(b, a) (
|
||||
)
|
||||
ENGINE=mito";
|
||||
let result = ParserContext::create_with_dialect(sql, &GreptimeDbDialect {});
|
||||
assert!(result.is_ok());
|
||||
let _ = result.unwrap();
|
||||
|
||||
let sql = r"
|
||||
CREATE TABLE rcx ( a INT, b STRING, c INT )
|
||||
@@ -1489,6 +1489,6 @@ ENGINE=mito";
|
||||
create table foo("user" string, i bigint time index)
|
||||
"#;
|
||||
let result = ParserContext::create_with_dialect(sql, &GreptimeDbDialect {});
|
||||
assert!(result.is_ok());
|
||||
let _ = result.unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user