alamb commented on code in PR #8817:
URL: https://github.com/apache/arrow-datafusion/pull/8817#discussion_r1467508214
##########
datafusion/core/src/physical_optimizer/enforce_sorting.rs:
##########
@@ -812,6 +634,50 @@ mod tests {
let session_ctx = SessionContext::new_with_config(config);
let state = session_ctx.state();
+ // This file has 4 rules that use tree node, apply these rules as
in the
+ // EnforSorting::optimize implementation
+ // After these operations tree nodes should be in a consistent
state.
+ // This code block makes sure that these rules doesn't violate
tree node integrity.
+ {
+ let plan_requirements =
PlanWithCorrespondingSort::new_default($PLAN.clone());
+ let adjusted = plan_requirements
+ .transform_up(&ensure_sorting)
+ .and_then(check_integrity)?;
+ // TODO: End state payloads will be checked here.
Review Comment:
A separate ticket is a great idea -- can you please file one and add the
link to these comments?
--
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]