### Is your feature request related to a problem or challenge? As described by @wiedld on https://github.com/apache/datafusion/pull/12729 > A https://github.com/apache/datafusion/pull/11989 (and released in 42.0.0) has [added a check](https://github.com/apache/datafusion/blob/322d83526909ab44cfbe34b982d1a1c36a4dbe8f/datafusion/core/src/physical_planner.rs#L676) that the logical and physical plan input schemas (to an aggregate node) are the same. This check fails for us in several different queries now downstream in InfluxDB and this ticket tracks the list of issues we found ### Issues - [x] https://github.com/apache/datafusion/issues/12687 - [x] #12734 - [x] #12735 - [ ] https://github.com/apache/datafusion/issues/12736 - [x] https://github.com/apache/datafusion/pull/12951 - [x] https://github.com/apache/datafusion/issues/13010 - [x] https://github.com/apache/datafusion/issues/13190
Is your feature request related to a problem or challenge?
As described by @wiedld on #12729
This check fails for us in several different queries now downstream in InfluxDB and this ticket tracks the list of issues we found
Issues
COUNT DISTINCTqueries resulting in Internal Error: Physical input schema should be the same as the one converted from logical input schema #12687now()#12951