mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-25 17:30:41 +00:00
chore: update toolchain to 20231219 (#2932)
* update toolchain file, remove unused feature gates Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix clippy Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix format Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * update action file Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * update to 12-19 Signed-off-by: Ruihang Xia <waynestxia@gmail.com> --------- Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
@@ -211,7 +211,7 @@ mod tests {
|
||||
.unwrap()
|
||||
{
|
||||
Statement::CreateTable(CreateTable { columns, .. }) => {
|
||||
let ts_col = columns.get(0).unwrap();
|
||||
let ts_col = columns.first().unwrap();
|
||||
assert_eq!(
|
||||
expected_type,
|
||||
sql_data_type_to_concrete_data_type(&ts_col.data_type).unwrap()
|
||||
|
||||
@@ -33,7 +33,9 @@ impl<'a> ParserContext<'a> {
|
||||
pub(crate) fn parse_copy(&mut self) -> Result<Statement> {
|
||||
let _ = self.parser.next_token();
|
||||
let next = self.parser.peek_token();
|
||||
let copy = if let Word(word) = next.token && word.keyword == Keyword::DATABASE {
|
||||
let copy = if let Word(word) = next.token
|
||||
&& word.keyword == Keyword::DATABASE
|
||||
{
|
||||
let _ = self.parser.next_token();
|
||||
let copy_database = self.parser_copy_database()?;
|
||||
crate::statements::copy::Copy::CopyDatabase(copy_database)
|
||||
|
||||
@@ -783,7 +783,7 @@ fn ensure_value_lists_strictly_increased<'a>(
|
||||
/// Ensure that value list's length matches the column list.
|
||||
fn ensure_value_list_len_matches_columns(
|
||||
partitions: &Partitions,
|
||||
partition_columns: &Vec<&ColumnDef>,
|
||||
partition_columns: &[&ColumnDef],
|
||||
) -> Result<()> {
|
||||
for entry in partitions.entries.iter() {
|
||||
ensure!(
|
||||
|
||||
@@ -107,7 +107,7 @@ impl Insert {
|
||||
}
|
||||
}
|
||||
|
||||
fn sql_exprs_to_values(exprs: &Vec<Vec<Expr>>) -> Result<Vec<Vec<Value>>> {
|
||||
fn sql_exprs_to_values(exprs: &[Vec<Expr>]) -> Result<Vec<Vec<Value>>> {
|
||||
let mut values = Vec::with_capacity(exprs.len());
|
||||
for es in exprs.iter() {
|
||||
let mut vs = Vec::with_capacity(es.len());
|
||||
|
||||
Reference in New Issue
Block a user