[ 
https://issues.apache.org/jira/browse/HIVE-1648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12928733#action_12928733
 ] 

Namit Jain commented on HIVE-1648:
----------------------------------

getOuterQueryLimit is not used correctly.

qb maintains a mapping of limit per destination

      case HiveParser.TOK_LIMIT:
        qbp.setDestLimit(ctx_1.dest, new Integer(ast.getChild(0).getText()));
        break;



Since you are browsing the input tables, you dont care about the destination.
Go over:

private final HashMap<String, Integer> destToLimit;

in QBParseInfo.

If that is not-empty, do not gather stats

> Automatically gathering stats when reading a table/partition
> ------------------------------------------------------------
>
>                 Key: HIVE-1648
>                 URL: https://issues.apache.org/jira/browse/HIVE-1648
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Ning Zhang
>         Attachments: HIVE-1648.patch
>
>
> HIVE-1361 introduces a new command 'ANALYZE TABLE T COMPUTE STATISTICS' to 
> gathering stats. This requires additional scan of the data. Stats gathering 
> can be piggy-backed on TableScanOperator whenever a table/partition is 
> scanned (given not LIMIT operator). 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to