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

   ### Describe the bug
   
   ```rust
         // the result size is two times a*b because you have the columns of 
both left and right
         let total_byte_size = left_stats
             .total_byte_size
             .multiply(&right_stats.total_byte_size)
             .multiply(&Precision::Exact(2));
   ```
   
   This formula is wrong: we're multiplying two byte-size values together, 
which doesn't make sense. The right formula is `(left_rows * right_row_count) + 
(right_rows * left_row_count)`.
   
   ### 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