You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Xurenhe (Jira)" <ji...@apache.org> on 2020/06/09 13:12:00 UTC

[jira] [Commented] (CALCITE-3935) Materialization-Failed, when querying with LeftJoinWithFilter

    [ https://issues.apache.org/jira/browse/CALCITE-3935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17129254#comment-17129254 ] 

Xurenhe commented on CALCITE-3935:
----------------------------------

[~jinxing6042@126.com][~xzh_dz]
Please review this pr: https://github.com/apache/calcite/pull/2013

> Materialization-Failed, when querying with LeftJoinWithFilter
> -------------------------------------------------------------
>
>                 Key: CALCITE-3935
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3935
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Xurenhe
>            Priority: Major
>         Attachments: Jietu20200417-200532.png
>
>
> {code:java}
> @Test public void testJoinOnLeftProjectWithFilterToJoin() {
>     String mv = ""
>         + "select \"emps\".\"empid\", \"depts\".\"name\", \"emps\".\"salary\"\n" +
>         "from \"emps\"\n" +
>         "left join \"depts\"\n" +
>         "on \"emps\".\"deptno\" = \"depts\".\"deptno\"\n"
>         + "where \"emps\".\"empid\" > 10";
>     String query = ""
>         + "select \"emps\".\"empid\", \"depts\".\"name\", \"emps\".\"salary\"\n" +
>         "from \"emps\"\n" +
>         "left join \"depts\"\n" +
>         "on \"emps\".\"deptno\" = \"depts\".\"deptno\"\n"
>         + "where \"emps\".\"empid\" > 40";
>     sql(mv, query).withOnlyBySubstitution(true).ok();
>   }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)