chore: update rust toolchain to 1.98.1 (#9429)

This commit is contained in:
Ning Sun
2026-10-08 09:00:10 +00:00
committed by GitHub
parent 526dd48bda
commit 7f0f592b6b
39 changed files with 92 additions and 103 deletions
+2 -2
View File
@@ -768,7 +768,7 @@ impl<'a> ParserContext<'a> {
{
return Err(ParserError::ParserError(format!(
"Cannot use keyword '{}' as column name. Hint: add quotes to the name.",
&name.value
name.value
)));
}
@@ -786,7 +786,7 @@ impl<'a> ParserContext<'a> {
InvalidSqlSnafu {
msg: format!(
"Cannot use keyword '{}' as column name. Hint: add quotes to the name.",
&name.value
name.value
),
}
);
+5 -5
View File
@@ -46,7 +46,7 @@ pub struct CopyQueryTo {
impl Display for CopyQueryTo {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "COPY ({}) TO {}", &self.query, &self.arg.location)?;
write!(f, "COPY ({}) TO {}", self.query, self.arg.location)?;
if !self.arg.with.is_empty() {
let options = self.arg.with.kv_pairs();
write!(f, " WITH ({})", options.join(", "))?;
@@ -70,11 +70,11 @@ impl Display for CopyTable {
write!(f, "COPY ")?;
let (with, connection) = match self {
CopyTable::To(args) => {
write!(f, "{} TO {}", &args.table_name, &args.location)?;
write!(f, "{} TO {}", args.table_name, args.location)?;
(&args.with, &args.connection)
}
CopyTable::From(args) => {
write!(f, "{} FROM {}", &args.table_name, &args.location)?;
write!(f, "{} FROM {}", args.table_name, args.location)?;
(&args.with, &args.connection)
}
};
@@ -101,11 +101,11 @@ impl Display for CopyDatabase {
write!(f, "COPY DATABASE ")?;
let (with, connection) = match self {
CopyDatabase::To(args) => {
write!(f, "{} TO {}", &args.database_name, &args.location)?;
write!(f, "{} TO {}", args.database_name, args.location)?;
(&args.with, &args.connection)
}
CopyDatabase::From(args) => {
write!(f, "{} FROM {}", &args.database_name, &args.location)?;
write!(f, "{} FROM {}", args.database_name, args.location)?;
(&args.with, &args.connection)
}
};
+10 -10
View File
@@ -456,7 +456,7 @@ impl CreateTable {
if self.if_not_exists {
write!(f, "IF NOT EXISTS ")?;
}
writeln!(f, "{} (", &self.name)?;
writeln!(f, "{} (", self.name)?;
for (index, column) in self.columns.iter().enumerate() {
if index > 0 {
f.write_str(LINE_SEP)?;
@@ -471,7 +471,7 @@ impl CreateTable {
if let Some(partitions) = &self.partitions {
writeln!(f, "{partitions}")?;
}
writeln!(f, "ENGINE={}", &self.engine)?;
writeln!(f, "ENGINE={}", self.engine)?;
if !self.options.is_empty() {
f.write_str("WITH(\n")?;
self.options.write_sql(f, LINE_SEP, " ", complete)?;
@@ -506,7 +506,7 @@ impl Display for CreateDatabase {
if self.if_not_exists {
write!(f, "IF NOT EXISTS ")?;
}
write!(f, "{}", &self.name)?;
write!(f, "{}", self.name)?;
if !self.options.is_empty() {
let options = self.options.kv_pairs();
write!(f, "\nWITH(\n{}\n)", format_list_indent!(options))?;
@@ -533,11 +533,11 @@ impl Display for CreateExternalTable {
if self.if_not_exists {
write!(f, "IF NOT EXISTS ")?;
}
writeln!(f, "{} (", &self.name)?;
writeln!(f, "{} (", self.name)?;
writeln!(f, "{},", format_list_indent!(self.columns))?;
writeln!(f, "{}", format_table_constraint(&self.constraints))?;
writeln!(f, ")")?;
writeln!(f, "ENGINE={}", &self.engine)?;
writeln!(f, "ENGINE={}", self.engine)?;
if !self.options.is_empty() {
let options = self.options.kv_pairs();
write!(f, "WITH(\n{}\n)", format_list_indent!(options))?;
@@ -635,8 +635,8 @@ impl Display for CreateFlow {
if self.if_not_exists {
write!(f, "IF NOT EXISTS ")?;
}
writeln!(f, "{}", &self.flow_name)?;
writeln!(f, "SINK TO {}", &self.sink_table_name)?;
writeln!(f, "{}", self.flow_name)?;
writeln!(f, "SINK TO {}", self.sink_table_name)?;
if let Some(expire_after) = &self.expire_after {
writeln!(f, "EXPIRE AFTER '{} s'", expire_after)?;
}
@@ -657,7 +657,7 @@ impl Display for CreateFlow {
let options = self.flow_options.kv_pairs();
writeln!(f, "WITH ({})", format_list_comma!(options))?;
}
write!(f, "AS {}", &self.query)
write!(f, "AS {}", self.query)
}
}
@@ -687,11 +687,11 @@ impl Display for CreateView {
if self.if_not_exists {
write!(f, "IF NOT EXISTS ")?;
}
write!(f, "{} ", &self.name)?;
write!(f, "{} ", self.name)?;
if !self.columns.is_empty() {
write!(f, "({}) ", format_list_comma!(self.columns))?;
}
write!(f, "AS {}", &self.query)
write!(f, "AS {}", self.query)
}
}
+2 -2
View File
@@ -258,10 +258,10 @@ impl Visit for OptionMap {
impl VisitMut for OptionMap {
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break> {
for (_, v) in self.options.iter_mut() {
for v in self.options.values_mut() {
v.visit(visitor)?;
}
for (_, v) in self.secrets.iter_mut() {
for v in self.secrets.values_mut() {
v.expose_secret_mut().visit(visitor)?;
}
ControlFlow::Continue(())
+4 -4
View File
@@ -41,7 +41,7 @@ impl Display for ShowKind {
macro_rules! format_kind {
($self: expr, $f: expr) => {
if $self.kind != ShowKind::All {
write!($f, " {}", &$self.kind)?;
write!($f, " {}", $self.kind)?;
}
};
}
@@ -71,7 +71,7 @@ impl Display for ShowColumns {
if self.full {
write!(f, "FULL ")?;
}
write!(f, "COLUMNS IN {}", &self.table)?;
write!(f, "COLUMNS IN {}", self.table)?;
if let Some(database) = &self.database {
write!(f, " IN {database}")?;
}
@@ -90,7 +90,7 @@ pub struct ShowIndex {
impl Display for ShowIndex {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "SHOW INDEX IN {}", &self.table)?;
write!(f, "SHOW INDEX IN {}", self.table)?;
if let Some(database) = &self.database {
write!(f, " IN {database}")?;
}
@@ -110,7 +110,7 @@ pub struct ShowRegion {
impl Display for ShowRegion {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "SHOW REGION IN {}", &self.table)?;
write!(f, "SHOW REGION IN {}", self.table)?;
if let Some(database) = &self.database {
write!(f, " IN {database}")?;
}