adriangb commented on code in PR #18868:
URL: https://github.com/apache/datafusion/pull/18868#discussion_r2630920047
##########
datafusion/physical-plan/src/limit.rs:
##########
@@ -51,6 +51,9 @@ pub struct GlobalLimitExec {
/// Execution metrics
metrics: ExecutionPlanMetricsSet,
cache: PlanProperties,
+ /// Whether the limit is order-sensitive
+ /// Such as the child plan is a sort node, then the limit is
order-sensitive
+ order_sensitive: bool,
Review Comment:
Just a thought: instead of order sensitive could this store the sort order
it requires? If we have the info available and are adding a field that could be
more useful in ensuring correctness of the plan is preserved through
transformations.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]