Skip to content

Commit

Permalink
Minor: clarify comment about empty dependencies (#12786)
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb authored Oct 8, 2024
1 parent 577e4bb commit d8405ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datafusion/physical-expr/src/equivalence/properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1492,6 +1492,8 @@ impl<'a> DependencyEnumerator<'a> {
// Since we work on intermediate nodes, we are sure `val.target_sort_expr`
// exists.
let target_sort_expr = node.target_sort_expr.as_ref().unwrap();
// An empty dependency means the referred_sort_expr represents a global ordering.
// Return its projected version, which is the target_expression.
if node.dependencies.is_empty() {
return vec![vec![target_sort_expr.clone()]];
};
Expand Down

0 comments on commit d8405ba

Please sign in to comment.