Skip to content

Commit 3be9144

Browse files
committed
chore: codefmt
1 parent 40b877f commit 3be9144

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/binder/select.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -416,13 +416,9 @@ impl<'a: 'b, 'b, T: Transaction, A: AsRef<[(&'static str, DataValue)]>> Binder<'
416416
));
417417
}
418418
let table_alias = Arc::new(name.value.to_lowercase());
419+
let table = tables.pop().unwrap_or_else(|| self.context.temp_table());
419420

420-
plan = self.bind_alias(
421-
plan,
422-
alias_column,
423-
table_alias,
424-
tables.pop().unwrap_or(Arc::new("_temp_table_".to_string())),
425-
)?;
421+
plan = self.bind_alias(plan, alias_column, table_alias, table)?;
426422
}
427423
plan
428424
}

src/planner/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ impl LogicalPlan {
115115
fn collect_table(plan: &LogicalPlan, results: &mut Vec<TableName>) {
116116
if let Operator::TableScan(op) = &plan.operator {
117117
results.push(op.table_name.clone());
118-
} else if let Operator::Values(op) = &plan.operator {
119-
results.push(op.schema_ref[0].table_name().unwrap().clone());
120118
}
121119
for child in plan.childrens.iter() {
122120
collect_table(child, results);

0 commit comments

Comments
 (0)