wiedld commented on code in PR #13651: URL: https://github.com/apache/datafusion/pull/13651#discussion_r1896088892
########## datafusion/optimizer/src/optimizer.rs: ########## @@ -384,9 +394,16 @@ impl Optimizer { // rule handles recursion itself None => optimize_plan_node(new_plan, rule.as_ref(), config), } - // verify the rule didn't change the schema .and_then(|tnr| { - assert_schema_is_the_same(rule.name(), &starting_schema, &tnr.data)?; + // verify after each optimizer pass. + assert_valid_optimization(rule.name(), &tnr.data, &starting_schema) Review Comment: ~Done~ Edited: this is not the source of the performance regression. -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org