Skip to content

Commit

Permalink
chore: codefmt
Browse files Browse the repository at this point in the history
  • Loading branch information
KKould committed Nov 3, 2024
1 parent b66b381 commit 8c85fb1
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/binder/copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use crate::errors::DatabaseError;
use crate::planner::operator::copy_from_file::CopyFromFileOperator;
use crate::planner::operator::copy_to_file::CopyToFileOperator;
use crate::planner::operator::Operator;
use serde::{Deserialize, Serialize};
use fnck_sql_serde_macros::ReferenceSerialization;
use serde::{Deserialize, Serialize};
use sqlparser::ast::{CopyOption, CopySource, CopyTarget};

#[derive(Debug, PartialEq, PartialOrd, Ord, Hash, Eq, Clone, ReferenceSerialization)]
Expand Down
2 changes: 1 addition & 1 deletion src/catalog/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use crate::errors::DatabaseError;
use crate::types::index::{IndexMeta, IndexMetaRef, IndexType};
use crate::types::tuple::SchemaRef;
use crate::types::{ColumnId, LogicalType};
use itertools::Itertools;
use fnck_sql_serde_macros::ReferenceSerialization;
use itertools::Itertools;
use std::collections::BTreeMap;
use std::sync::Arc;
use std::{slice, vec};
Expand Down
2 changes: 1 addition & 1 deletion src/expression/function/scala.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use crate::expression::ScalarExpression;
use crate::types::tuple::Tuple;
use crate::types::value::DataValue;
use crate::types::LogicalType;
use serde::{Deserialize, Serialize};
use fnck_sql_serde_macros::ReferenceSerialization;
use serde::{Deserialize, Serialize};
use std::fmt::Debug;
use std::hash::{Hash, Hasher};
use std::ops::Deref;
Expand Down
2 changes: 1 addition & 1 deletion src/expression/function/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use crate::errors::DatabaseError;
use crate::expression::function::FunctionSummary;
use crate::expression::ScalarExpression;
use crate::types::tuple::{SchemaRef, Tuple};
use serde::{Deserialize, Serialize};
use fnck_sql_serde_macros::ReferenceSerialization;
use serde::{Deserialize, Serialize};
use std::fmt::Debug;
use std::hash::{Hash, Hasher};
use std::ops::Deref;
Expand Down
2 changes: 1 addition & 1 deletion src/expression/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ use crate::expression::function::table::TableFunction;
use crate::types::evaluator::{BinaryEvaluatorBox, EvaluatorFactory, UnaryEvaluatorBox};
use crate::types::value::ValueRef;
use crate::types::LogicalType;
use itertools::Itertools;
use fnck_sql_serde_macros::ReferenceSerialization;
use itertools::Itertools;
use sqlparser::ast::TrimWhereField;
use sqlparser::ast::{
BinaryOperator as SqlBinaryOperator, CharLengthUnits, UnaryOperator as SqlUnaryOperator,
Expand Down
2 changes: 1 addition & 1 deletion src/expression/range_detacher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ use crate::catalog::ColumnRef;
use crate::expression::{BinaryOperator, ScalarExpression};
use crate::types::value::{DataValue, ValueRef, NULL_VALUE};
use crate::types::ColumnId;
use itertools::Itertools;
use fnck_sql_serde_macros::ReferenceSerialization;
use itertools::Itertools;
use std::cmp::Ordering;
use std::collections::Bound;
use std::fmt::Formatter;
Expand Down
2 changes: 1 addition & 1 deletion src/optimizer/core/histogram.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use crate::types::evaluator::EvaluatorFactory;
use crate::types::index::{IndexId, IndexMeta};
use crate::types::value::{DataValue, ValueRef};
use crate::types::LogicalType;
use ordered_float::OrderedFloat;
use fnck_sql_serde_macros::ReferenceSerialization;
use ordered_float::OrderedFloat;
use std::collections::Bound;
use std::sync::Arc;
use std::{cmp, mem};
Expand Down
2 changes: 1 addition & 1 deletion src/planner/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ use crate::planner::operator::union::UnionOperator;
use crate::planner::operator::values::ValuesOperator;
use crate::planner::operator::{Operator, PhysicalOption};
use crate::types::tuple::{Schema, SchemaRef};
use itertools::Itertools;
use fnck_sql_serde_macros::ReferenceSerialization;
use itertools::Itertools;
use std::sync::Arc;

#[derive(Debug, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion src/planner/operator/aggregate.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::planner::LogicalPlan;
use crate::{expression::ScalarExpression, planner::operator::Operator};
use itertools::Itertools;
use fnck_sql_serde_macros::ReferenceSerialization;
use itertools::Itertools;
use std::fmt;
use std::fmt::Formatter;

Expand Down
2 changes: 1 addition & 1 deletion src/planner/operator/copy_from_file.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::binder::copy::ExtSource;
use crate::types::tuple::SchemaRef;
use itertools::Itertools;
use fnck_sql_serde_macros::ReferenceSerialization;
use itertools::Itertools;
use std::fmt;
use std::fmt::Formatter;

Expand Down
2 changes: 1 addition & 1 deletion src/planner/operator/create_index.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::catalog::{ColumnRef, TableName};
use crate::types::index::IndexType;
use itertools::Itertools;
use fnck_sql_serde_macros::ReferenceSerialization;
use itertools::Itertools;
use std::fmt;
use std::fmt::Formatter;

Expand Down
2 changes: 1 addition & 1 deletion src/planner/operator/create_table.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::catalog::{ColumnCatalog, TableName};
use itertools::Itertools;
use fnck_sql_serde_macros::ReferenceSerialization;
use itertools::Itertools;
use std::fmt;
use std::fmt::Formatter;

Expand Down
2 changes: 1 addition & 1 deletion src/planner/operator/join.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use super::Operator;
use crate::expression::ScalarExpression;
use crate::planner::LogicalPlan;
use itertools::Itertools;
use fnck_sql_serde_macros::ReferenceSerialization;
use itertools::Itertools;
use std::fmt;
use std::fmt::Formatter;
use strum_macros::Display;
Expand Down
2 changes: 1 addition & 1 deletion src/planner/operator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ use crate::planner::operator::union::UnionOperator;
use crate::planner::operator::update::UpdateOperator;
use crate::planner::operator::values::ValuesOperator;
use crate::types::index::IndexInfo;
use itertools::Itertools;
use fnck_sql_serde_macros::ReferenceSerialization;
use itertools::Itertools;
use std::fmt;
use std::fmt::Formatter;

Expand Down
2 changes: 1 addition & 1 deletion src/planner/operator/project.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::expression::ScalarExpression;
use itertools::Itertools;
use fnck_sql_serde_macros::ReferenceSerialization;
use itertools::Itertools;
use std::fmt;
use std::fmt::Formatter;

Expand Down
2 changes: 1 addition & 1 deletion src/planner/operator/sort.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::expression::ScalarExpression;
use itertools::Itertools;
use fnck_sql_serde_macros::ReferenceSerialization;
use itertools::Itertools;
use std::fmt;
use std::fmt::Formatter;

Expand Down
2 changes: 1 addition & 1 deletion src/planner/operator/table_scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use crate::planner::LogicalPlan;
use crate::storage::Bounds;
use crate::types::index::IndexInfo;
use crate::types::ColumnId;
use itertools::Itertools;
use fnck_sql_serde_macros::ReferenceSerialization;
use itertools::Itertools;
use std::fmt;
use std::fmt::Formatter;

Expand Down
2 changes: 1 addition & 1 deletion src/planner/operator/union.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use crate::planner::operator::Operator;
use crate::planner::LogicalPlan;
use crate::types::tuple::SchemaRef;
use itertools::Itertools;
use fnck_sql_serde_macros::ReferenceSerialization;
use itertools::Itertools;
use std::fmt;
use std::fmt::Formatter;

Expand Down
2 changes: 1 addition & 1 deletion src/planner/operator/values.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::types::tuple::SchemaRef;
use crate::types::value::ValueRef;
use itertools::Itertools;
use fnck_sql_serde_macros::ReferenceSerialization;
use itertools::Itertools;
use std::fmt;
use std::fmt::Formatter;

Expand Down

0 comments on commit 8c85fb1

Please sign in to comment.