You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Yuming Wang (Jira)" <ji...@apache.org> on 2021/04/02 15:24:00 UTC
[jira] [Created] (IMPALA-10635) Removes outer join if it only has
DISTINCT on streamed side
Yuming Wang created IMPALA-10635:
------------------------------------
Summary: Removes outer join if it only has DISTINCT on streamed side
Key: IMPALA-10635
URL: https://issues.apache.org/jira/browse/IMPALA-10635
Project: IMPALA
Issue Type: Improvement
Components: Backend
Reporter: Yuming Wang
Removes outer join if it only has DISTINCT on streamed side. For example:
{code:sql}
CREATE TABLE t1(a int, b int);
CREATE TABLE t2(a int, b int);
SELECT DISTINCT t1.b FROM t1 LEFT JOIN t2 ON t1.a = t2.a;
{code}
We can rewrite {{SELECT DISTINCT t1.b FROM t1 LEFT JOIN t2 ON t1.a = t2.a}} to {{SELECT DISTINCT t1.b FROM t1}}.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)