You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org> on 2014/10/01 09:04:35 UTC

[jira] [Resolved] (PHOENIX-1296) Scan entire region when tenant-specific table is analyzed

     [ https://issues.apache.org/jira/browse/PHOENIX-1296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ramkrishna.s.vasudevan resolved PHOENIX-1296.
---------------------------------------------
       Resolution: Fixed
    Fix Version/s: 3.2
                   4.2

The preScannerOpen hook is now used to set the start and stop row in case of ANALYZE.  The change has been done as part of Phoenix-1263.

> Scan entire region when tenant-specific table is analyzed
> ---------------------------------------------------------
>
>                 Key: PHOENIX-1296
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1296
>             Project: Phoenix
>          Issue Type: Sub-task
>            Reporter: James Taylor
>            Assignee: ramkrishna.s.vasudevan
>             Fix For: 4.2, 3.2
>
>         Attachments: Phoenix-1296_1.patch, Phoenix-1296_3.patch
>
>
> Based on the issue you've uncovered (that stats must be updated completely for a region), there's a bit of follow on work needed if an ANALYZE is done on a tenant-specific table. This case will be optimized to only scan and analyze the current tenant's data, however we have to make sure that the entire region(s) containing that tenant's data is scanned (or we'll end up replacing the stats for that region with just the one we calculated for that tenant).
> We should be able to do that based on ScanUtil.isAnalyzeTable(scan) being true in DefaultParallelIteratorRegionSplitter and/or ParallelIterators.



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