HaoYang670 edited a comment on issue #1623: URL: https://github.com/apache/arrow-datafusion/issues/1623#issuecomment-1032363131
These queries work: ```sql ❯ select count(*), count(distinct stop_name), trip_tid from stops where stop_name is not null group by trip_tid limit 10; +-----------------+---------------------------------+----------+ | COUNT(UInt8(1)) | COUNT(DISTINCT stops.stop_name) | trip_tid | +-----------------+---------------------------------+----------+ | 1 | 1 | 54787914 | | 1 | 1 | 54804331 | | 1 | 1 | 54756522 | | 1 | 1 | 54791196 | | 1 | 1 | 54775777 | | 1 | 1 | 54788343 | | 1 | 1 | 54788169 | | 2 | 2 | 54793827 | | 1 | 1 | 54776433 | | 1 | 1 | 54788382 | +-----------------+---------------------------------+----------+ ❯ select count(distinct stop_name) from stops group by trip_tid limit 10; +---------------------------------+ | COUNT(DISTINCT stops.stop_name) | +---------------------------------+ | 3 | | 24 | | 13 | | 1 | | 1 | | 2 | | 2 | | 0 | | 0 | | 0 | +---------------------------------+ 10 rows in set. Query took 0.046 seconds. ``` -- 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]
