HaoYang670 commented on issue #1623: URL: https://github.com/apache/arrow-datafusion/issues/1623#issuecomment-1038100425
I also test the sql: (removing `group by trip_tid`) ```sql select count(*), count(distinct stop_name) from stops limit 3 ``` and there is no error appearing. After debugging, I find that the function `DistinctCountAccumulator.merge_batch` is called from `group_aggregate_batch` when the sql containing `group by trip_tid` and is called from `aggregate_batch` when removing `group by trip_tid`. So I guess the bug is in the function `group_aggregate_batch` in `hash_aggregate.rs`, but I am not sure. -- 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]
