mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-13 08:43:00 +00:00
chore: upgrade rust toolchain to latest nightly (#2049)
* chore: upgrade rust toolchain to latest nightly * rebase develop * update rust toolchain in ci
This commit is contained in:
@@ -191,14 +191,17 @@ mod tests {
|
||||
let result0 = ParserContext::create_with_dialect(sql0, &GreptimeDbDialect {}).unwrap();
|
||||
let result1 = ParserContext::create_with_dialect(sql1, &GreptimeDbDialect {}).unwrap();
|
||||
|
||||
for mut result in vec![result0, result1] {
|
||||
for mut result in [result0, result1] {
|
||||
assert_eq!(1, result.len());
|
||||
|
||||
let statement = result.remove(0);
|
||||
assert_matches!(statement, Statement::Copy { .. });
|
||||
match statement {
|
||||
Copy(copy) => {
|
||||
let crate::statements::copy::Copy::CopyTable(CopyTable::To(copy_table)) = copy else { unreachable!() };
|
||||
let crate::statements::copy::Copy::CopyTable(CopyTable::To(copy_table)) = copy
|
||||
else {
|
||||
unreachable!()
|
||||
};
|
||||
let (catalog, schema, table) =
|
||||
if let [catalog, schema, table] = ©_table.table_name.0[..] {
|
||||
(
|
||||
@@ -360,7 +363,9 @@ mod tests {
|
||||
.pop()
|
||||
.unwrap();
|
||||
|
||||
let Statement::Copy(crate::statements::copy::Copy::CopyDatabase(stmt)) = stmt else { unreachable!() };
|
||||
let Copy(crate::statements::copy::Copy::CopyDatabase(stmt)) = stmt else {
|
||||
unreachable!()
|
||||
};
|
||||
assert_eq!(
|
||||
ObjectName(vec![Ident::new("catalog0"), Ident::new("schema0")]),
|
||||
stmt.database_name
|
||||
|
||||
@@ -78,7 +78,9 @@ impl CreateTable {
|
||||
.iter()
|
||||
.map(|c| {
|
||||
if is_time_index(c) {
|
||||
let TableConstraint::Unique { columns, ..} = c else { unreachable!() };
|
||||
let TableConstraint::Unique { columns, .. } = c else {
|
||||
unreachable!()
|
||||
};
|
||||
|
||||
format_indent!("{}TIME INDEX ({})", format_list_comma!(columns))
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user