You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/01/27 03:09:29 UTC

[GitHub] [arrow-datafusion] liukun4515 commented on issue #210: Add support for group by Decimal numbers

liukun4515 commented on issue #210:
URL: https://github.com/apache/arrow-datafusion/issues/210#issuecomment-1022804688


   @alamb 
   this issue can be closed
   ```
   ❯ \d food
   +---------------+--------------+------------+-------------+-----------------+-------------+
   | table_catalog | table_schema | table_name | column_name | data_type       | is_nullable |
   +---------------+--------------+------------+-------------+-----------------+-------------+
   | datafusion    | public       | food       | a           | Decimal(10, 5)  | NO          |
   | datafusion    | public       | food       | b           | Decimal(20, 15) | NO          |
   | datafusion    | public       | food       | c           | Boolean         | NO          |
   +---------------+--------------+------------+-------------+-----------------+-------------+
   3 rows in set. Query took 0.010 seconds.
   ❯ select count(*),a from food group by a;
   +-----------------+---------+
   | COUNT(UInt8(1)) | a       |
   +-----------------+---------+
   | 3               | 0.00003 |
   | 1               | 0.00001 |
   | 4               | 0.00004 |
   | 5               | 0.00005 |
   | 2               | 0.00002 |
   +-----------------+---------+
   ```


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org