[ https://issues.apache.org/jira/browse/HIVE-21344?focusedWorklogId=294025&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-294025 ]
ASF GitHub Bot logged work on HIVE-21344: ----------------------------------------- Author: ASF GitHub Bot Created on: 13/Aug/19 17:11 Start Date: 13/Aug/19 17:11 Worklog Time Spent: 10m Work Description: jcamachor commented on pull request #749: HIVE-21344 URL: https://github.com/apache/hive/pull/749 ---------------------------------------------------------------- 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: 294025) Time Spent: 10m Remaining Estimate: 0h > CBO: Reduce compilation time in presence of materialized views > -------------------------------------------------------------- > > Key: HIVE-21344 > URL: https://issues.apache.org/jira/browse/HIVE-21344 > Project: Hive > Issue Type: Bug > Components: Materialized views > Affects Versions: 4.0.0 > Reporter: Gopal V > Assignee: Jesus Camacho Rodriguez > Priority: Major > Labels: pull-request-available > Attachments: HIVE-21344.01.patch, HIVE-21344.02.patch, > HIVE-21344.03.patch, HIVE-21344.04.patch, HIVE-21344.patch, > calcite-planner-after-fix.svg.zip, mv-get-from-remote.png > > Time Spent: 10m > Remaining Estimate: 0h > > For every query, {{getAllValidMaterializedViews}} still requires a call to > metastore to verify that the materializations exist, whether they are > outdated or not, etc. Since this is only useful for active-active HS2 > deployments, we could take a less aggressive approach and check this > information only after rewriting has been triggered. In addition, we could > refresh the information in the HS2 registry periodically in a background > thread. > {code} > // This is not a rebuild, we retrieve all the materializations. In turn, we > do not need > // to force the materialization contents to be up-to-date, as this is not a > rebuild, and > // we apply the user parameters > (HIVE_MATERIALIZED_VIEW_REWRITING_TIME_WINDOW) instead. > materializations = db.getAllValidMaterializedViews(getTablesUsed(basePlan), > false, getTxnMgr()); > {code} > !mv-get-from-remote.png! -- This message was sent by Atlassian JIRA (v7.6.14#76016)