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), trip_tid from stops group by trip_tid 
limit 10;
   +---------------------------------+----------+
   | COUNT(DISTINCT stops.stop_name) | trip_tid |
   +---------------------------------+----------+
   | 2                               | 54793827 |
   | 0                               | 54807414 |
   | 0                               | 54807426 |
   | 0                               | 54807516 |
   | 0                               | 54827775 |
   | 0                               | 54827714 |
   | 0                               | 54807481 |
   | 0                               | 54827749 |
   | 0                               | 54807473 |
   | 0                               | 54919940 |
   +---------------------------------+----------+
   ```


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


Reply via email to