hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashutosh Chauhan (JIRA)" <>
Subject [jira] [Commented] (HIVE-9573) Lazy load partitions for SELECT LIMIT type query
Date Wed, 30 Sep 2015 22:40:06 GMT


Ashutosh Chauhan commented on HIVE-9573:

This indeed sounds interesting. Will you like to upload a patch?

> Lazy load partitions for SELECT LIMIT type query
> ------------------------------------------------
>                 Key: HIVE-9573
>                 URL:
>             Project: Hive
>          Issue Type: Improvement
>          Components: Query Processor
>            Reporter: Selina Zhang
>            Assignee: Selina Zhang
> Some tools such as HUE uses 
> SELECT * FROM table LIMIT 100;
> to grab the sample content of table. For table with large partitions it causes a large
amount of partition objects been loaded. Thus slow down the HS2 even cause OOM from time to
> My solution is lazy load partition objects in FetchOperator for this type of query. We
can skip retrieving the whole partitions but only partition names in PartitionPrunner, and
lazy load the partition objects when needed in execution time (for local job only).
> I have a patch ready. But want to hear more suggestions. Thanks!

This message was sent by Atlassian JIRA

View raw message