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

James Taylor commented on PHOENIX-2702:
---------------------------------------

Quick fix is fine. I made the chunk info optional (off for tests and on 
otherwise) only because I didn't want to change hundreds of tests that compare 
the explain plan.

I think the best approach for this would be to adjust the code in 
BaseResultIterators to have a bit more structure (than the parallel scans and 
ranges that we store). It'd be pretty easy to collect up the info as we figure 
out the parallel scans.

> Show estimate rows and bytes touched for explain plan.
> ------------------------------------------------------
>
>                 Key: PHOENIX-2702
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-2702
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Lars Hofhansl
>
> We can already estimate the size of a table (both rows and uncompressed 
> bytes) with q query like this:
> {code}
> SELECT physical_name AS table_name, SUM(guide_posts_row_count) AS est_rows, 
> SUM(guilde_posts_width) AS est_size from SYSTEM.STATS GROUP BY physical_name;
> {code}
> During the planning phase we have more information, though. So we can report 
> the actual numbers for a query during an explain since we have that info 
> there anyway (we filtered the guidepost already with the key info provided in 
> the query).
> I might whip up a quick patch for this.
> (Could also go further and add a est_count, est_size UDF for this, but that 
> would be a bit harder to get hooked up at the right places, I think, and the 
> meaning would be ambiguous)



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

Reply via email to