YjyJeff opened a new pull request, #6862:
URL: https://github.com/apache/arrow-datafusion/pull/6862

   # Rationale for this change
   
   For the `from_plan` function, we want to generate a new logical plan with 
inputs and expressions replaced. When we encounter the `Aggregate` variant, the 
old code simply clones the old schema.  However, the new `group by expressions` 
may have a different schema from the old one. Therefore, we should use the 
`try_new` function to create a new `Aggregate`  variant with the correct 
schema. 
   
   
   # Are these changes tested?
   Yes
   
   # Are there any user-facing changes?
   No
   


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

Reply via email to