Skip to content

Commit b79fc7f

Browse files
committed
fmt
1 parent b5d841f commit b79fc7f

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

src/binder/create_table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ mod tests {
189189
&scala_functions,
190190
&table_functions,
191191
Arc::new(AtomicUsize::new(0)),
192-
vec![]
192+
vec![],
193193
),
194194
&[],
195195
None,

src/binder/select.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ use crate::types::tuple::{Schema, SchemaRef};
3535
use crate::types::value::Utf8Type;
3636
use crate::types::{ColumnId, LogicalType};
3737
use itertools::Itertools;
38-
use sqlparser::ast::{CharLengthUnits, Distinct, Expr, Ident, Join, JoinConstraint, JoinOperator, ObjectName, Offset, OrderByExpr, Query, Select, SelectInto, SelectItem, SetExpr, SetOperator, SetQuantifier, TableAlias, TableFactor, TableWithJoins};
38+
use sqlparser::ast::{
39+
CharLengthUnits, Distinct, Expr, Ident, Join, JoinConstraint, JoinOperator, ObjectName, Offset,
40+
OrderByExpr, Query, Select, SelectInto, SelectItem, SetExpr, SetOperator, SetQuantifier,
41+
TableAlias, TableFactor, TableWithJoins,
42+
};
3943

4044
impl<'a: 'b, 'b, T: Transaction, A: AsRef<[(&'static str, DataValue)]>> Binder<'a, 'b, T, A> {
4145
pub(crate) fn bind_query(&mut self, query: &Query) -> Result<LogicalPlan, DatabaseError> {
@@ -598,12 +602,12 @@ impl<'a: 'b, 'b, T: Transaction, A: AsRef<[(&'static str, DataValue)]>> Binder<'
598602
Ok(expr) => {
599603
need_parent = false;
600604
expr
601-
},
605+
}
602606
Err(DatabaseError::InvalidTable(table)) => {
603607
if !self.context.parent_name.contains(&table) {
604-
return Err(DatabaseError::InvalidTable(table))
608+
return Err(DatabaseError::InvalidTable(table));
605609
}
606-
let plan = self.bind_table_ref(&TableWithJoins{
610+
let plan = self.bind_table_ref(&TableWithJoins {
607611
relation: TableFactor::Table {
608612
name: ObjectName(vec![Ident::new(table)]),
609613
alias: None,
@@ -612,15 +616,11 @@ impl<'a: 'b, 'b, T: Transaction, A: AsRef<[(&'static str, DataValue)]>> Binder<'
612616
},
613617
joins: vec![],
614618
})?;
615-
children = LJoinOperator::build(
616-
children,
617-
plan,
618-
JoinCondition::None,
619-
JoinType::Full,
620-
);
619+
children =
620+
LJoinOperator::build(children, plan, JoinCondition::None, JoinType::Full);
621621
continue;
622-
},
623-
Err(e) => return Err(e)
622+
}
623+
Err(e) => return Err(e),
624624
};
625625
}
626626

src/db.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ impl<S: Storage> State<S> {
150150
scala_functions,
151151
table_functions,
152152
Arc::new(AtomicUsize::new(0)),
153-
vec![],
153+
vec![],
154154
),
155155
&params,
156156
None,

src/optimizer/core/memo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ mod tests {
138138
&scala_functions,
139139
&table_functions,
140140
Arc::new(AtomicUsize::new(0)),
141-
vec![]
141+
vec![],
142142
),
143143
&[],
144144
None,

0 commit comments

Comments
 (0)