Is it possible to be more defensive about this, such as a (debug) assert that checks this property at the callsite of simplify in the planner? 🤔 _Originally posted by @Jefffrey in https://github.com/apache/datafusion/pull/17981#pullrequestreview-3316979570_