[jira] [Updated] (FLINK-31273) Left join with IS_NULL filter be wrongly pushed down and get wrong join results

2023-03-13 Thread Martijn Visser (Jira)


 [ 
https://issues.apache.org/jira/browse/FLINK-31273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martijn Visser updated FLINK-31273:
---
Priority: Critical  (was: Blocker)

> Left join with IS_NULL filter be wrongly pushed down and get wrong join 
> results
> ---
>
> Key: FLINK-31273
> URL: https://issues.apache.org/jira/browse/FLINK-31273
> Project: Flink
>  Issue Type: Bug
>  Components: Table SQL / Planner
>Affects Versions: 1.17.0, 1.16.1
>Reporter: Yunhong Zheng
>Assignee: Yunhong Zheng
>Priority: Critical
>  Labels: pull-request-available
> Fix For: 1.17.0
>
>
> Left join with IS_NULL filter be wrongly pushed down and get wrong join 
> results. The sql is:
> {code:java}
> SELECT * FROM MyTable1 LEFT JOIN MyTable2 ON a1 = a2 WHERE a2 IS NULL AND a1 
> < 10
> The wrongly plan is:
> LogicalProject(a1=[$0], b1=[$1], c1=[$2], b2=[$3], c2=[$4], a2=[$5])
> +- LogicalFilter(condition=[IS NULL($5)])
>    +- LogicalJoin(condition=[=($0, $5)], joinType=[left])
>       :- LogicalValues(tuples=[[]])
>       +- LogicalTableScan(table=[[default_catalog, default_database, 
> MyTable2]]) {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FLINK-31273) Left join with IS_NULL filter be wrongly pushed down and get wrong join results

2023-03-13 Thread Yunhong Zheng (Jira)


 [ 
https://issues.apache.org/jira/browse/FLINK-31273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yunhong Zheng updated FLINK-31273:
--
Fix Version/s: 1.17.0
   (was: 1.17.1)

> Left join with IS_NULL filter be wrongly pushed down and get wrong join 
> results
> ---
>
> Key: FLINK-31273
> URL: https://issues.apache.org/jira/browse/FLINK-31273
> Project: Flink
>  Issue Type: Bug
>  Components: Table SQL / Planner
>Affects Versions: 1.17.0, 1.16.1
>Reporter: Yunhong Zheng
>Assignee: Yunhong Zheng
>Priority: Major
>  Labels: pull-request-available
> Fix For: 1.17.0
>
>
> Left join with IS_NULL filter be wrongly pushed down and get wrong join 
> results. The sql is:
> {code:java}
> SELECT * FROM MyTable1 LEFT JOIN MyTable2 ON a1 = a2 WHERE a2 IS NULL AND a1 
> < 10
> The wrongly plan is:
> LogicalProject(a1=[$0], b1=[$1], c1=[$2], b2=[$3], c2=[$4], a2=[$5])
> +- LogicalFilter(condition=[IS NULL($5)])
>    +- LogicalJoin(condition=[=($0, $5)], joinType=[left])
>       :- LogicalValues(tuples=[[]])
>       +- LogicalTableScan(table=[[default_catalog, default_database, 
> MyTable2]]) {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FLINK-31273) Left join with IS_NULL filter be wrongly pushed down and get wrong join results

2023-03-13 Thread Yunhong Zheng (Jira)


 [ 
https://issues.apache.org/jira/browse/FLINK-31273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yunhong Zheng updated FLINK-31273:
--
Priority: Blocker  (was: Major)

> Left join with IS_NULL filter be wrongly pushed down and get wrong join 
> results
> ---
>
> Key: FLINK-31273
> URL: https://issues.apache.org/jira/browse/FLINK-31273
> Project: Flink
>  Issue Type: Bug
>  Components: Table SQL / Planner
>Affects Versions: 1.17.0, 1.16.1
>Reporter: Yunhong Zheng
>Assignee: Yunhong Zheng
>Priority: Blocker
>  Labels: pull-request-available
> Fix For: 1.17.0
>
>
> Left join with IS_NULL filter be wrongly pushed down and get wrong join 
> results. The sql is:
> {code:java}
> SELECT * FROM MyTable1 LEFT JOIN MyTable2 ON a1 = a2 WHERE a2 IS NULL AND a1 
> < 10
> The wrongly plan is:
> LogicalProject(a1=[$0], b1=[$1], c1=[$2], b2=[$3], c2=[$4], a2=[$5])
> +- LogicalFilter(condition=[IS NULL($5)])
>    +- LogicalJoin(condition=[=($0, $5)], joinType=[left])
>       :- LogicalValues(tuples=[[]])
>       +- LogicalTableScan(table=[[default_catalog, default_database, 
> MyTable2]]) {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FLINK-31273) Left join with IS_NULL filter be wrongly pushed down and get wrong join results

2023-02-28 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/FLINK-31273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated FLINK-31273:
---
Labels: pull-request-available  (was: )

> Left join with IS_NULL filter be wrongly pushed down and get wrong join 
> results
> ---
>
> Key: FLINK-31273
> URL: https://issues.apache.org/jira/browse/FLINK-31273
> Project: Flink
>  Issue Type: Bug
>  Components: Table SQL / Planner
>Affects Versions: 1.17.0, 1.16.1
>Reporter: Yunhong Zheng
>Priority: Major
>  Labels: pull-request-available
> Fix For: 1.17.1
>
>
> Left join with IS_NULL filter be wrongly pushed down and get wrong join 
> results. The sql is:
> {code:java}
> SELECT * FROM MyTable1 LEFT JOIN MyTable2 ON a1 = a2 WHERE a2 IS NULL AND a1 
> < 10
> The wrongly plan is:
> LogicalProject(a1=[$0], b1=[$1], c1=[$2], b2=[$3], c2=[$4], a2=[$5])
> +- LogicalFilter(condition=[IS NULL($5)])
>    +- LogicalJoin(condition=[=($0, $5)], joinType=[left])
>       :- LogicalValues(tuples=[[]])
>       +- LogicalTableScan(table=[[default_catalog, default_database, 
> MyTable2]]) {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)