chore: update rust to nightly 2025-10-01 (#7069)

* chore: update rust to nightly 2025-10-01

Signed-off-by: luofucong <luofc@foxmail.com>

* chore: nix update

---------

Signed-off-by: luofucong <luofc@foxmail.com>
Co-authored-by: Ning Sun <sunning@greptime.com>
This commit is contained in:
LFC
2025-10-11 15:30:52 +08:00
committed by GitHub
parent 40e9ce90a7
commit 8fe17d43d5
217 changed files with 523 additions and 647 deletions

View File

@@ -194,7 +194,7 @@ pub(crate) async fn create_external_expr(
create_if_not_exists: create.if_not_exists,
table_options,
table_id: None,
engine: create.engine.to_string(),
engine: create.engine.clone(),
};
Ok(expr)
@@ -234,7 +234,7 @@ pub fn create_to_expr(
create_if_not_exists: create.if_not_exists,
table_options,
table_id: None,
engine: create.engine.to_string(),
engine: create.engine.clone(),
};
validate_create_expr(&expr)?;
@@ -604,7 +604,7 @@ pub fn find_time_index(constraints: &[TableConstraint]) -> Result<String> {
err_msg: "must have one and only one TimeIndex columns",
}
);
Ok(time_index.first().unwrap().to_string())
Ok(time_index[0].clone())
}
fn columns_to_expr(
@@ -748,12 +748,12 @@ pub(crate) fn to_alter_table_expr(
}
AlterTableOperation::DropColumn { name } => AlterTableKind::DropColumns(DropColumns {
drop_columns: vec![DropColumn {
name: name.value.to_string(),
name: name.value.clone(),
}],
}),
AlterTableOperation::RenameTable { new_table_name } => {
AlterTableKind::RenameTable(RenameTable {
new_table_name: new_table_name.to_string(),
new_table_name: new_table_name.clone(),
})
}
AlterTableOperation::SetTableOptions { options } => {

View File

@@ -306,7 +306,7 @@ impl Inserter {
.create_or_alter_tables_on_demand(
&mut requests,
&ctx,
AutoCreateTableType::Logical(physical_table.to_string()),
AutoCreateTableType::Logical(physical_table.clone()),
statement_executor,
true,
true,
@@ -881,8 +881,8 @@ impl Inserter {
Ok(Some(AlterTableExpr {
catalog_name: catalog_name.to_string(),
schema_name: schema_name.to_string(),
table_name: table_name.to_string(),
schema_name: schema_name.clone(),
table_name: table_name.clone(),
kind: Some(Kind::AddColumns(add_columns)),
}))
}
@@ -1010,7 +1010,7 @@ pub fn fill_table_options_for_create(
AutoCreateTableType::Logical(physical_table) => {
table_options.insert(
LOGICAL_TABLE_METADATA_KEY.to_string(),
physical_table.to_string(),
physical_table.clone(),
);
}
AutoCreateTableType::Physical => {

View File

@@ -14,7 +14,6 @@
#![feature(assert_matches)]
#![feature(if_let_guard)]
#![feature(let_chains)]
mod bulk_insert;
pub mod delete;

View File

@@ -354,7 +354,7 @@ fn semantic_type(table_info: &TableInfo, column: &str) -> Result<SemanticType> {
let time_index_column = &table_schema
.timestamp_column()
.with_context(|| table::error::MissingTimeIndexColumnSnafu {
table_name: table_info.name.to_string(),
table_name: table_info.name.clone(),
})
.context(MissingTimeIndexColumnSnafu)?
.name;

View File

@@ -36,7 +36,7 @@ fn semantic_type(table_info: &TableInfo, column: &str) -> Result<SemanticType> {
let time_index_column = &table_schema
.timestamp_column()
.with_context(|| table::error::MissingTimeIndexColumnSnafu {
table_name: table_info.name.to_string(),
table_name: table_info.name.clone(),
})
.context(MissingTimeIndexColumnSnafu)?
.name;

View File

@@ -116,7 +116,7 @@ impl StatementExecutor {
Source::Dir
};
let lister = Lister::new(object_store.clone(), source.clone(), dir.to_string(), regex);
let lister = Lister::new(object_store.clone(), source.clone(), dir.clone(), regex);
let entries = lister.list().await.context(error::ListObjectsSnafu)?;
debug!("Copy from dir: {dir:?}, {source:?}, entries: {entries:?}");
@@ -430,7 +430,7 @@ impl StatementExecutor {
let fields = projected_table_schema
.fields()
.iter()
.map(|f| f.name().to_string())
.map(|f| f.name().clone())
.collect::<Vec<_>>();
// TODO(hl): make this configurable through options.
@@ -453,9 +453,9 @@ impl StatementExecutor {
pending.push(self.inserter.handle_table_insert(
InsertRequest {
catalog_name: req.catalog_name.to_string(),
schema_name: req.schema_name.to_string(),
table_name: req.table_name.to_string(),
catalog_name: req.catalog_name.clone(),
schema_name: req.schema_name.clone(),
table_name: req.table_name.clone(),
columns_values,
},
query_ctx.clone(),

View File

@@ -36,7 +36,7 @@ impl StatementExecutor {
if query_ctx.get_cursor(&cursor_name).is_some() {
error::CursorExistsSnafu {
name: cursor_name.to_string(),
name: cursor_name.clone(),
}
.fail()?;
}

View File

@@ -1014,7 +1014,7 @@ impl StatementExecutor {
let schema = if expr.schema_name.is_empty() {
query_context.current_schema()
} else {
expr.schema_name.to_string()
expr.schema_name.clone()
};
let table_name = &expr.table_name;
let table = self
@@ -1446,9 +1446,9 @@ impl StatementExecutor {
let request = SubmitDdlTaskRequest {
query_context,
task: DdlTask::new_drop_table(
table_name.catalog_name.to_string(),
table_name.schema_name.to_string(),
table_name.table_name.to_string(),
table_name.catalog_name.clone(),
table_name.schema_name.clone(),
table_name.table_name.clone(),
table_id,
drop_if_exists,
),
@@ -1504,9 +1504,9 @@ impl StatementExecutor {
let request = SubmitDdlTaskRequest {
query_context,
task: DdlTask::new_truncate_table(
table_name.catalog_name.to_string(),
table_name.schema_name.to_string(),
table_name.table_name.to_string(),
table_name.catalog_name.clone(),
table_name.schema_name.clone(),
table_name.table_name.clone(),
table_id,
time_ranges,
),