mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-15 17:52:57 +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:
@@ -654,7 +654,9 @@ mod tests {
|
||||
let columns = vec![builder.to_vector()];
|
||||
let record_batch = RecordBatch::new(schema, columns).unwrap();
|
||||
let output = execute_show_with_filter(record_batch, None).await.unwrap();
|
||||
let Output::RecordBatches(record_batches) = output else {unreachable!()};
|
||||
let Output::RecordBatches(record_batches) = output else {
|
||||
unreachable!()
|
||||
};
|
||||
let expected = "\
|
||||
+----------------+
|
||||
| Tables |
|
||||
@@ -682,12 +684,18 @@ mod tests {
|
||||
)
|
||||
.unwrap()[0]
|
||||
.clone();
|
||||
let Statement::ShowTables(ShowTables { kind, .. }) = statement else {unreachable!()};
|
||||
let ShowKind::Where(filter) = kind else {unreachable!()};
|
||||
let Statement::ShowTables(ShowTables { kind, .. }) = statement else {
|
||||
unreachable!()
|
||||
};
|
||||
let ShowKind::Where(filter) = kind else {
|
||||
unreachable!()
|
||||
};
|
||||
let output = execute_show_with_filter(record_batch, Some(filter))
|
||||
.await
|
||||
.unwrap();
|
||||
let Output::RecordBatches(record_batches) = output else {unreachable!()};
|
||||
let Output::RecordBatches(record_batches) = output else {
|
||||
unreachable!()
|
||||
};
|
||||
let expected = "\
|
||||
+---------+
|
||||
| Tables |
|
||||
|
||||
@@ -86,7 +86,7 @@ impl ExtensionPlanner for DistExtensionPlanner {
|
||||
.create_physical_plan(input_plan, session_state)
|
||||
.await?;
|
||||
let Some(table_name) = self.get_table_name(input_plan)? else {
|
||||
// no relation found in input plan, going to execute them locally
|
||||
// no relation found in input plan, going to execute them locally
|
||||
return Ok(Some(input_physical_plan));
|
||||
};
|
||||
|
||||
|
||||
@@ -44,10 +44,9 @@ async fn exec_selection(engine: QueryEngineRef, sql: &str) -> Vec<RecordBatch> {
|
||||
.plan(stmt, QueryContext::arc())
|
||||
.await
|
||||
.unwrap();
|
||||
let Output::Stream(stream) = engine
|
||||
.execute(plan, QueryContext::arc())
|
||||
.await
|
||||
.unwrap() else { unreachable!() };
|
||||
let Output::Stream(stream) = engine.execute(plan, QueryContext::arc()).await.unwrap() else {
|
||||
unreachable!()
|
||||
};
|
||||
util::collect(stream).await.unwrap()
|
||||
}
|
||||
|
||||
|
||||
@@ -57,7 +57,9 @@ where
|
||||
function::get_numbers_from_table::<T>(column_name, table_name, engine.clone()).await;
|
||||
let numbers = numbers.iter().map(|&n| n.as_()).collect::<Vec<f64>>();
|
||||
let expected = numbers.iter().sum::<f64>() / (numbers.len() as f64);
|
||||
let Value::Float64(OrderedFloat(value)) = value else { unreachable!() };
|
||||
let Value::Float64(OrderedFloat(value)) = value else {
|
||||
unreachable!()
|
||||
};
|
||||
assert!(
|
||||
(value - expected).abs() < 1e-3,
|
||||
"expected {expected}, actual {value}"
|
||||
|
||||
Reference in New Issue
Block a user