mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-21 23:40:38 +00:00
chore: update rust toolchain to 2026-03-21 (#7849)
* chore: update rust toolchain to 2026-03-21 * chore: new format * fix: lint * chore: resolve lint issues * chore: remove as_millis_f64 * chore: deps up
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
// limitations under the License.
|
||||
|
||||
#![feature(try_blocks)]
|
||||
#![feature(assert_matches)]
|
||||
|
||||
mod admin;
|
||||
mod flush_flow;
|
||||
|
||||
@@ -794,16 +794,12 @@ impl Tokenizer {
|
||||
is_quote_present = true;
|
||||
break;
|
||||
}
|
||||
' ' => {
|
||||
if !is_quoted {
|
||||
break;
|
||||
}
|
||||
' ' if !is_quoted => {
|
||||
break;
|
||||
}
|
||||
'(' | ')' | '+' | '-' => {
|
||||
if !is_quoted {
|
||||
self.rewind_one();
|
||||
break;
|
||||
}
|
||||
'(' | ')' | '+' | '-' if !is_quoted => {
|
||||
self.rewind_one();
|
||||
break;
|
||||
}
|
||||
'\\' => {
|
||||
let Some(next) = self.consume_next(pattern) else {
|
||||
|
||||
@@ -141,7 +141,7 @@ where
|
||||
results.push((self.func)(v0, v1)?);
|
||||
}
|
||||
|
||||
let results = ScalarValue::iter_to_array(results.into_iter())?;
|
||||
let results = ScalarValue::iter_to_array(results)?;
|
||||
Ok(ColumnarValue::Array(results))
|
||||
}
|
||||
}
|
||||
@@ -200,7 +200,7 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
let results = ScalarValue::iter_to_array(results.into_iter())?;
|
||||
let results = ScalarValue::iter_to_array(results)?;
|
||||
Ok(ColumnarValue::Array(results))
|
||||
}
|
||||
}
|
||||
@@ -232,7 +232,7 @@ where
|
||||
results.push((self.func)(&v)?);
|
||||
}
|
||||
|
||||
let results = ScalarValue::iter_to_array(results.into_iter())?;
|
||||
let results = ScalarValue::iter_to_array(results)?;
|
||||
Ok(ColumnarValue::Array(results))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -167,7 +167,7 @@ mod tests {
|
||||
"External error: Invalid vector string: [7.0,hello,9.0]",
|
||||
];
|
||||
|
||||
for (input, expected) in inputs.into_iter().zip(expected.into_iter()) {
|
||||
for (input, expected) in inputs.into_iter().zip(expected) {
|
||||
let args = ScalarFunctionArgs {
|
||||
args: vec![ColumnarValue::Array(Arc::new(input))],
|
||||
arg_fields: vec![],
|
||||
|
||||
Reference in New Issue
Block a user