chore: replace result assertions (#1840)

* s/assert!\((.*)\.is_ok\(\)\);/\1.unwrap\(\);/g

* s/assert!\((.*)\.is_some\(\)\);/\1.unwrap\(\);/g
This commit is contained in:
Lei, HUANG
2023-06-27 19:14:48 +08:00
committed by GitHub
parent b737a240de
commit f287d3115b
92 changed files with 269 additions and 304 deletions

View File

@@ -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();
}
}