[
https://issues.apache.org/jira/browse/HIVE-23735?focusedWorklogId=449577&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-449577
]
ASF GitHub Bot logged work on HIVE-23735:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 23/Jun/20 01:07
Start Date: 23/Jun/20 01:07
Worklog Time Spent: 10m
Work Description: rbalamohan opened a new pull request #1165:
URL: https://github.com/apache/hive/pull/1165
HIVE-23735: Reducer misestimate for export command
SemanticAnalyzer::genBucketingSortingDest checks for number of buckets for
enforceBucketing and based on this number of reducers are determined. Patch
adds one more check for bucketCols to ensure that only valid tables gets the
reducer sink.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 449577)
Remaining Estimate: 0h
Time Spent: 10m
> Reducer misestimate for export command
> --------------------------------------
>
> Key: HIVE-23735
> URL: https://issues.apache.org/jira/browse/HIVE-23735
> Project: Hive
> Issue Type: Improvement
> Reporter: Rajesh Balamohan
> Priority: Major
> Attachments: HIVE-23735.1.wip.patch
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java#L6869
> {code}
> if (dest_tab.getNumBuckets() > 0) {
> ...
> }
> {code}
> For "export" command, HS2 creates a dummy table and for this table and gets
> "1" as the number of buckets.
> {noformat}
> set hive.stats.autogather=false;
> export table sample_table to '/tmp/export/sampe_db/t1';
> {noformat}
> This causes issues in reducer estimates and always lands up with '1' as the
> number of reducer task.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)