[ https://issues.apache.org/jira/browse/HIVE-20915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16712992#comment-16712992 ]
Yongzhi Chen edited comment on HIVE-20915 at 12/7/18 3:46 PM: -------------------------------------------------------------- [~kgyrtkirk], This patch enables dynamic sort partition optimization, and current cost based algorithm and the default value of hive.optimize.sort.dynamic.partition.threshold=0 will make this test use this optimization (the query plan will be different). If you set hive.optimize.sort.dynamic.partition.threshold=-1, the query plan will be the same as before. With the optimizer, there is no group by step, so there is no compute stats part. was (Author: ychena): [~kgyrtkirk], it looks the similar stats information for me: https://github.com/apache/hive/commit/9f2e8e61f3cf456420cfb461504cdfa076b96f6e#diff-e5ca628c543044b9188f64378e677accR53 This patch enables dynamic sort partition optimization, and current cost based algorithm and the default value of hive.optimize.sort.dynamic.partition.threshold=0 will make this test use this optimization (the query plan will be different). If you set hive.optimize.sort.dynamic.partition.threshold=-1, the query plan will be the same as before. > Make dynamic sort partition optimization available to HoS and MR > ---------------------------------------------------------------- > > Key: HIVE-20915 > URL: https://issues.apache.org/jira/browse/HIVE-20915 > Project: Hive > Issue Type: Bug > Components: Query Planning > Affects Versions: 4.0.0 > Reporter: Yongzhi Chen > Assignee: Yongzhi Chen > Priority: Major > Fix For: 4.0.0 > > Attachments: HIVE-20915.1.patch, HIVE-20915.2.patch, > HIVE-20915.3.patch, HIVE-20915.4.patch, HIVE-20915.5.patch > > > HIVE-20703 put dynamic sort partition optimization under cost based decision, > but it also makes the optimizer only available to tez. > hive.optimize.sort.dynamic.partition works with other execution engines for a > long time, we should keep the optimizer available to them. -- This message was sent by Atlassian JIRA (v7.6.3#76005)