You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Aman Sinha (JIRA)" <ji...@apache.org> on 2015/04/29 19:25:06 UTC
[jira] [Resolved] (DRILL-658) Add support for multiple distinct
counts without a grouping key.
[ https://issues.apache.org/jira/browse/DRILL-658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aman Sinha resolved DRILL-658.
------------------------------
Resolution: Fixed
This is fixed by the NLJ changes in commit #: 3a232d81e
Here's the test result:
{code}
0: jdbc:drill:zk=local> select count(distinct l_partkey), count(distinct l_suppkey), count(distinct l_orderkey) from lineitem;
+------------+------------+------------+
| EXPR$0 | EXPR$1 | EXPR$2 |
+------------+------------+------------+
| 200000 | 10000 | 1500000 |
+------------+------------+------------+
{code}
> Add support for multiple distinct counts without a grouping key.
> ----------------------------------------------------------------
>
> Key: DRILL-658
> URL: https://issues.apache.org/jira/browse/DRILL-658
> Project: Apache Drill
> Issue Type: New Feature
> Components: Query Planning & Optimization
> Reporter: Chun Chang
> Assignee: Aman Sinha
> Fix For: 0.9.0
>
>
> postgres:
> foodmart=# select count(distinct(c_int)), count(distinct(c_bigint)), count(distinct(c_float4)), count(distinct(c_float8)) from data;
> count | count | count | count
> -------+-------+-------+-------
> 21 | 23 | 22 | 20
> (1 row)
> drill:
> 0: jdbc:drill:schema=dfs> select count(distinct(c_int)), count(distinct(c_bigint)), count(distinct(c_float4)), count(distinct(c_float8)) from data;
> Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while running query.[error_id: "658d1c88-3968-457f-82e1-26c76ff7b54b"
> endpoint {
> address: "qa-node120.qa.lab"
> user_port: 31010
> control_port: 31011
> data_port: 31012
> }
> error_type: 0
> message: "Failure while parsing sql. < CannotPlanException:[ Node [rel#5852:Subset#33.PHYSICAL.SINGLETON([]).[]] could not be implemented;
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)