Skip to content

Commit 26ebbc4

Browse files
committed
format code
1 parent dc23ced commit 26ebbc4

File tree

2 files changed

+134
-104
lines changed

2 files changed

+134
-104
lines changed

rust/lance-graph/src/query.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,13 @@ impl CypherQuery {
242242

243243
// Optimize the plan using DataFusion's default optimizer rules
244244
// This helps simplify the plan (e.g., merging projections) to produce cleaner SQL
245-
let optimized_plan = ctx.state().optimize(&df_plan).map_err(|e| GraphError::PlanError {
246-
message: format!("Failed to optimize plan: {}", e),
247-
location: snafu::Location::new(file!(), line!(), column!()),
248-
})?;
245+
let optimized_plan = ctx
246+
.state()
247+
.optimize(&df_plan)
248+
.map_err(|e| GraphError::PlanError {
249+
message: format!("Failed to optimize plan: {}", e),
250+
location: snafu::Location::new(file!(), line!(), column!()),
251+
})?;
249252

250253
// Unparse to SQL
251254
let sql_ast = plan_to_sql(&optimized_plan).map_err(|e| GraphError::PlanError {

0 commit comments

Comments
 (0)