tokoko opened a new issue, #12869:
URL: https://github.com/apache/datafusion/issues/12869

   ### Describe the bug
   
   First reported at 
[ibis-substrait](https://github.com/ibis-project/ibis-substrait/pull/1120).
   
   Substrait plans that have AggregateRel as the last node (and also contain 
both grouping expressions and measures, not just measures) fail to be consumed. 
The likely cause is this 
[line](https://github.com/apache/datafusion/blob/3bc77148c15c8a675c7d186c81ea54f1bcab2d42/datafusion/substrait/src/logical_plan/consumer.rs#L236)
 in the consumer. It incorrectly assumes that number of fields in the output 
schema and number of measures should be the same, but that is obviously not 
true for the case when there are also grouping expressions in the Rel.
   
   ### To Reproduce
   
   _No response_
   
   ### Expected behavior
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
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]

Reply via email to