hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hive QA (Jira)" <>
Subject [jira] [Commented] (HIVE-21344) CBO: Reduce compilation time in presence of materialized views
Date Fri, 11 Oct 2019 13:28:00 GMT


Hive QA commented on HIVE-21344:

Here are the results of testing the latest attachment:

{color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified.

{color:green}SUCCESS:{color} +1 due to 17518 tests passed

Test results:
Console output:
Test logs:

Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.YetusPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase

This message is automatically generated.

ATTACHMENT ID: 12982721 - PreCommit-HIVE-Build

> CBO: Reduce compilation time in presence of materialized views
> --------------------------------------------------------------
>                 Key: HIVE-21344
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: Materialized views
>    Affects Versions: 4.0.0
>            Reporter: Gopal Vijayaraghavan
>            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.05.patch, HIVE-21344.patch,, mv-get-from-remote.png
>          Time Spent: 50m
>  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,
> // 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

View raw message