phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Taylor (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-3005) Use DistinctPrefixFilter for COUNT(DISTINCT...) index scans
Date Sun, 19 Jun 2016 22:42:05 GMT

    [ https://issues.apache.org/jira/browse/PHOENIX-3005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15338825#comment-15338825
] 

James Taylor commented on PHOENIX-3005:
---------------------------------------

You may have already discovered, but it looks like the node rewrite that transforms the data
table query into an index table query is losing the class of functions. ParseNodeRewrite ends
up creating an AggregateFunctionParseNode instead of a DistinctCountParseNode, so you instanceof
check is failing. Let me see if there's an easy fix.

> Use DistinctPrefixFilter for COUNT(DISTINCT...) index scans
> -----------------------------------------------------------
>
>                 Key: PHOENIX-3005
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3005
>             Project: Phoenix
>          Issue Type: Sub-task
>            Reporter: Lars Hofhansl
>             Fix For: 4.8.0
>
>
> Currently the optimization in PHOENIX-258 is not used for DISTINCT index scans. We should
add that as well.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message