[ https://issues.apache.org/jira/browse/HIVE-19113?focusedWorklogId=280788&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-280788 ]
ASF GitHub Bot logged work on HIVE-19113: ----------------------------------------- Author: ASF GitHub Bot Created on: 23/Jul/19 03:43 Start Date: 23/Jul/19 03:43 Worklog Time Spent: 10m Work Description: jcamachor commented on pull request #731: HIVE-19113 URL: https://github.com/apache/hive/pull/731#discussion_r306117688 ########## File path: ql/src/test/results/clientpositive/llap/dynamic_semijoin_reduction_3.q.out ########## @@ -582,7 +584,7 @@ STAGE PLANS: Reducer 4 <- Reducer 3 (SIMPLE_EDGE) Reducer 5 <- Reducer 3 (SIMPLE_EDGE) Reducer 6 <- Reducer 3 (SIMPLE_EDGE) - Reducer 7 <- Reducer 3 (CUSTOM_SIMPLE_EDGE) Review comment: This is the INSERT branch of a merge statement. Bucketing key (`clustered by (a)`) is same that is present in the right outer join hence it seems fine. ```explain merge into acidTbl as t using nonAcidOrcTbl s ON t.a = s.a WHEN MATCHED AND s.a > 8 THEN DELETE WHEN MATCHED THEN UPDATE SET b = 7 WHEN NOT MATCHED THEN INSERT VALUES(s.a, s.b)``` ---------------------------------------------------------------- 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: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 280788) Time Spent: 40m (was: 0.5h) > Bucketing: Make CLUSTERED BY do CLUSTER BY if no explicit sorting is specified > ------------------------------------------------------------------------------ > > Key: HIVE-19113 > URL: https://issues.apache.org/jira/browse/HIVE-19113 > Project: Hive > Issue Type: Improvement > Components: Logical Optimizer > Affects Versions: 3.0.0 > Reporter: Gopal V > Assignee: Jesus Camacho Rodriguez > Priority: Major > Labels: pull-request-available > Attachments: HIVE-19113.01.patch, HIVE-19113.patch > > Time Spent: 40m > Remaining Estimate: 0h > > The user's expectation of > "create external table bucketed (key int) clustered by (key) into 4 buckets > stored as orc;" > is that the table will cluster the key into 4 buckets, while the file layout > does not do any actual clustering of rows. > In the absence of a "SORTED BY", this can automatically do a "SORTED BY > (key)" to cluster the keys within the file as expected. -- This message was sent by Atlassian JIRA (v7.6.14#76016)