Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions crates/lance-csr/src/datafusion_planner/builder/basic_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ impl DataFusionPlanner {
let input_plan = self.build_operator(ctx, input)?;
return self.build_simple_project(input_plan, projections);
}
if let Some(plan) = self.try_build_two_hop_count(ctx, input, projections)? {
return Ok(plan);
}
// An ORDER BY right before an aggregation only orders what collect() gathers, as in
// Neo4j (LDBC IC7 takes `head(collect(...))` of sorted rows): it becomes the
// aggregate's own ORDER BY instead of a sort of its input.
Expand Down
Loading
Loading