Commits


Chenxi Li authored and David Li committed 0f820efeff9
ARROW-15441: [C++][Compute] Fix incorrect result of hash_count a null type column The result of hash_count such array is incorrect. For a table like this: <table> <thead> <tr> <th>argument</th> <th>key</th> </tr> </thead> <tbody> <tr> <td>NULL</td> <td>1</td> </tr> <tr> <td>NULL</td> <td>1</td> </tr> </tbody> </table> The result is : <table> <thead> <tr> <th>CountOptions</th> <th>Expected</th> <th>Actual</th> </tr> </thead> <tbody> <tr> <td>ONLY_VALID</td> <td>0</td> <td>2</td> </tr> <tr> <td>ONLY_NULL</td> <td>2</td> <td>0</td> </tr> </tbody> </table> This PR handles null type with different count options. Closes #12251 from Crystrix/arrow-15441 Authored-by: Chenxi Li <chenxi.li@live.com> Signed-off-by: David Li <li.davidm96@gmail.com>