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 2021/04/26 13:22:06 UTC
[GitHub] [arrow-datafusion] alamb opened a new issue #107: [Datafusion] GROUP BY with a high cardinality doesn't seem to finish
alamb opened a new issue #107:
URL: https://github.com/apache/arrow-datafusion/issues/107
*Note*: migrated from original JIRA: https://issues.apache.org/jira/browse/ARROW-10275
Group by with a high cardinality (columns with lots of unique values) don't seem to finish.
I've tried with both datafusion-cli and this:
[https://github.com/joshuataylor/parquet-group-by/blob/main/src/main.rs]
When doing O_ORDERKEY there are ~15 000 000 unique records, so it seems to stall. I've tried with limit but it doesn't work either.
My parquet file: [https://drive.google.com/file/d/1aCW7SW2rUVioSePduhgo_91F5-xDMyjp/view?usp=sharing]
datafusion-cli:
{code:java}
CREATE EXTERNAL TABLE something STORED AS PARQUET LOCATION 'demo.parquet';
select O_ORDERKEY from something group by O_ORDERKEY;
{code}
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] alamb closed issue #107: [Datafusion] GROUP BY with a high cardinality doesn't seem to finish
Posted by GitBox <gi...@apache.org>.
alamb closed issue #107:
URL: https://github.com/apache/arrow-datafusion/issues/107
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] alamb commented on issue #107: [Datafusion] GROUP BY with a high cardinality doesn't seem to finish
Posted by GitBox <gi...@apache.org>.
alamb commented on issue #107:
URL: https://github.com/apache/arrow-datafusion/issues/107#issuecomment-827505452
Filed follow on tickets for decimal numbers. Thanks @joshuataylor
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] alamb commented on issue #107: [Datafusion] GROUP BY with a high cardinality doesn't seem to finish
Posted by GitBox <gi...@apache.org>.
alamb commented on issue #107:
URL: https://github.com/apache/arrow-datafusion/issues/107#issuecomment-826839895
The good news is that this doesn't hang anymore... The bad news is that datafusion doesn't seem to yet support sufficient functionality for handling the Decimal type
```
> CREATE EXTERNAL TABLE something STORED AS PARQUET LOCATION '/Users/alamb/Downloads/demo.parquet';
0 rows in set. Query took 0 seconds.
> select count(*) from foo;
Plan("Table or CTE with name \'foo\' not found")
> select count(*) from something;
+-----------------+
| COUNT(UInt8(1)) |
+-----------------+
| 15000000 |
+-----------------+
1 rows in set. Query took 1 seconds.
> select O_ORDERKEY from something limit 10;
ArrowError(InvalidArgumentError("Pretty printing not implemented for Decimal(9, 0) type"))
> select O_ORDERKEY from something group by O_ORDERKEY;
ArrowError(ExternalError(ArrowError(ExternalError(Internal("Unsupported GROUP BY type creating key Decimal(9, 0)")))))
>
```
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] alamb commented on issue #107: [Datafusion] GROUP BY with a high cardinality doesn't seem to finish
Posted by GitBox <gi...@apache.org>.
alamb commented on issue #107:
URL: https://github.com/apache/arrow-datafusion/issues/107#issuecomment-826831033
Comment from Andy Grove(andygrove) @ 2020-10-12T21:26:28.047+0000:
<pre>I have seen the same behavior. We have mostly been testing hash aggregates with queries that produce low cardinality results and will need to spend time testing for high cardinality results and see how we can optimize this.</pre>
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] joshuataylor commented on issue #107: [Datafusion] GROUP BY with a high cardinality doesn't seem to finish
Posted by GitBox <gi...@apache.org>.
joshuataylor commented on issue #107:
URL: https://github.com/apache/arrow-datafusion/issues/107#issuecomment-827274981
Hooray! And fine about the decimal type, that's another issue. Fine to mark this as closed.
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] alamb commented on issue #107: [Datafusion] GROUP BY with a high cardinality doesn't seem to finish
Posted by GitBox <gi...@apache.org>.
alamb commented on issue #107:
URL: https://github.com/apache/arrow-datafusion/issues/107#issuecomment-826833157
FYI @joshuataylor
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org