okumin commented on PR #5091:
URL: https://github.com/apache/hive/pull/5091#issuecomment-2094870637

   This table is the summary of the current behavior tested by 
https://github.com/apache/hive/pull/5091/commits/468ea05ea4dc5b5ff93e7417653fe663b098a4bf.
   
   | | CBO | Non-CBO | Note |
   |-|-|-|-|
   | $SUM0(c_numeric) | 228.0 | 228.0 | |
   | $SUM0(CAST(c_numeric AS DOUBLE)) | 228.0 | 228.0 | |
   | $SUM0(c_non_numeric) | 0.0 | 0.0 | |
   | $SUM0(CAST(c_non_numeric AS DOUBLE)) | 0.0 | 0.0 | |
   | $SUM0(c_mix) | 193.0 | 193.0 | |
   | $SUM0(CAST(c_mix AS DOUBLE)) | 193.0 | 193.0 | |
   | AVG(c_numeric) | 28.5 | 28.5 | |
   | AVG(CAST(c_numeric AS DOUBLE)) | 28.5 | 28.5 | |
   | AVG(c_non_numeric) | 0.0 | NULL | Inconsistent |
   | AVG(CAST(c_non_numeric AS DOUBLE)) | NULL | NULL | |
   | AVG(c_mix) | 24.125 | 32.167 | Inconsistent |
   | AVG(CAST(c_mix AS DOUBLE)) | 32.167 | 32.167 | |
   | STDDEV_POP(c_numeric) | 47.344 | 47.344 | |
   | STDDEV_POP(CAST(c_numeric AS DOUBLE)) | 47.344 | 47.344 | |
   | STDDEV_POP(c_non_numeric) | NULL | NULL | |
   | STDDEV_POP(CAST(c_non_numeric AS DOUBLE)) | NULL | NULL | |
   | STDDEV_POP(c_mix) | 48.401 | 53.524 | Inconsistent |
   | STDDEV_POP(CAST(c_mix AS DOUBLE)) | 53.524 | 53.524 | |
   | STDDEV_SAMP(c_numeric) | 50.613 | 50.613 | |
   | STDDEV_SAMP(CAST(c_numeric AS DOUBLE)) | 50.613 | 50.613 | |
   | STDDEV_SAMP(c_non_numeric) | NULL | NULL | |
   | STDDEV_SAMP(CAST(c_non_numeric AS DOUBLE)) | NULL | NULL | |
   | STDDEV_SAMP(c_mix) | 51.742 | 58.632 | Inconsistent |
   | STDDEV_SAMP(CAST(c_mix AS DOUBLE)) | 58.632 | 58.632 | |
   | VAR_POP(c_numeric) | 2241.5 | 2241.5 | |
   | VAR_POP(CAST(c_numeric AS DOUBLE)) | 2241.5 | 2241.5 | |
   | VAR_POP(c_non_numeric) | NULL | NULL | |
   | VAR_POP(CAST(c_non_numeric AS DOUBLE)) | NULL | NULL | |
   | VAR_POP(c_mix) | 2342.609 | 2864.806 | Inconsistent |
   | VAR_POP(CAST(c_mix AS DOUBLE)) | 2864.806 | 2864.806 | |
   | VAR_SAMP(c_numeric) | 2561.714 | 2561.714 | |
   | VAR_SAMP(CAST(c_numeric AS DOUBLE)) | 2561.714 | 2561.714 | |
   | VAR_SAMP(c_non_numeric) | NULL | NULL | |
   | VAR_SAMP(CAST(c_non_numeric AS DOUBLE)) | NULL | NULL | |
   | VAR_SAMP(c_mix) | 2677.268 | 3437.767 | Inconsistent |
   | VAR_SAMP(CAST(c_mix AS DOUBLE)) | 3437.767 | 3437.767 | |
   | SUM(c_numeric) | 228.0 | 228.0 | |
   | SUM(CAST(c_numeric AS DOUBLE)) | 228.0 | 228.0 | |
   | SUM(c_non_numeric) | 0.0 | 0.0 | |
   | SUM(CAST(c_non_numeric AS DOUBLE)) | NULL | NULL | |
   | SUM(c_mix) | 193.0 | 193.0 | |
   | SUM(CAST(c_mix AS DOUBLE)) | 193.0 | 193.0 | |
   | COUNT(c_numeric) | 8 | 8 | |
   | COUNT(CAST(c_numeric AS DOUBLE)) | 8 | 8 | |
   | COUNT(c_non_numeric) | 8 | 8 | |
   | COUNT(CAST(c_non_numeric AS DOUBLE)) | 0 | 0 | |
   | COUNT(c_mix) | 8 | 8 | |
   | COUNT(CAST(c_mix AS DOUBLE)) | 6 | 6 | |


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