[ https://issues.apache.org/jira/browse/HIVE-25253?focusedWorklogId=614397&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-614397 ]
ASF GitHub Bot logged work on HIVE-25253: ----------------------------------------- Author: ASF GitHub Bot Created on: 24/Jun/21 09:08 Start Date: 24/Jun/21 09:08 Worklog Time Spent: 10m Work Description: kasakrisz commented on a change in pull request #2401: URL: https://github.com/apache/hive/pull/2401#discussion_r657770038 ########## File path: ql/src/java/org/apache/hadoop/hive/ql/ddl/view/materialized/alter/rebuild/AlterMaterializedViewRebuildAnalyzer.java ########## @@ -353,6 +375,23 @@ private RelNode toJoinInsertIncremental( basePlan, mdProvider, executorProvider, HiveJoinInsertIncrementalRewritingRule.INSTANCE); } + private RelNode toPartitionInsertOverwrite( + RelNode basePlan, RelMetadataProvider mdProvider, RexExecutor executorProvider, + HiveRelOptMaterialization materialization, RelNode calcitePreMVRewritingPlan) { + + if (materialization.isSourceTablesUpdateDeleteModified()) { + return calcitePreMVRewritingPlan; + } + + RelOptHiveTable hiveTable = (RelOptHiveTable) materialization.tableRel.getTable(); + if (!AcidUtils.isInsertOnlyTable(hiveTable.getHiveTableMD())) { + return applyPreJoinOrderingTransforms(basePlan, mdProvider, executorProvider); + } + + return toIncrementalRebuild( + basePlan, mdProvider, executorProvider, HiveAggregatePartitionIncrementalRewritingRule.INSTANCE); + } + private RelNode toIncrementalRebuild( Review comment: renamed all to* methods to apply* in this class -- 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: 614397) Time Spent: 40m (was: 0.5h) > Incremental rebuild of partitioned insert only materialized views > ----------------------------------------------------------------- > > Key: HIVE-25253 > URL: https://issues.apache.org/jira/browse/HIVE-25253 > Project: Hive > Issue Type: Improvement > Components: CBO, Materialized views > Reporter: Krisztian Kasa > Assignee: Krisztian Kasa > Priority: Major > Labels: pull-request-available > Fix For: 4.0.0 > > Time Spent: 40m > Remaining Estimate: 0h > -- This message was sent by Atlassian Jira (v8.3.4#803005)