You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Jesus Camacho Rodriguez (JIRA)" <ji...@apache.org> on 2019/04/06 00:00:00 UTC
[jira] [Resolved] (CALCITE-2976) Improve materialized view
rewriting coverage with disjunctive predicates
[ https://issues.apache.org/jira/browse/CALCITE-2976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jesus Camacho Rodriguez resolved CALCITE-2976.
----------------------------------------------
Resolution: Fixed
Fix Version/s: 1.20.0
Fixed in [7bc925872e6ab213a9937a6a4c21cf8c31326910|https://github.com/apache/calcite/commit/7bc925872e6ab213a9937a6a4c21cf8c31326910].
> Improve materialized view rewriting coverage with disjunctive predicates
> ------------------------------------------------------------------------
>
> Key: CALCITE-2976
> URL: https://issues.apache.org/jira/browse/CALCITE-2976
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Reporter: Jesus Camacho Rodriguez
> Assignee: Jesus Camacho Rodriguez
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.20.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> For instance, in the following case:
> {code}
> @Test public void testJoinAggregateMaterializationAggregateFuncs14() {
> checkMaterialize(
> "select \"empid\", \"emps\".\"name\", \"emps\".\"deptno\", \"depts\".\"name\", "
> + "count(*) as c, sum(\"empid\") as s\n"
> + "from \"emps\" join \"depts\" using (\"deptno\")\n"
> + "where (\"depts\".\"name\" is not null and \"emps\".\"name\" = 'a') or "
> + "(\"depts\".\"name\" is not null and \"emps\".\"name\" = 'b')\n"
> + "group by \"empid\", \"emps\".\"name\", \"depts\".\"name\", \"emps\".\"deptno\"",
> "select \"depts\".\"deptno\", sum(\"empid\") as s\n"
> + "from \"emps\" join \"depts\" using (\"deptno\")\n"
> + "where \"depts\".\"name\" is not null and \"emps\".\"name\" = 'a'\n"
> + "group by \"depts\".\"deptno\"",
> HR_FKUK_MODEL,
> CONTAINS_M0);
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)