You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an optimization rule to remove unnecessary DISTINCT in this scenario:
SELECT ...
FROM t
WHERE c IN (SELECT DISTINCT ... FROM u)
Since the semi join already performs deduplication of the values in the subquery, that operation is unnecessary and results in an extra exchange and aggregation.
Hi, Martin, I am trying to work on this. Is this method correct? If aggregation node has output symbol same as group symbol and it is under FilteringSource of SemiJoin, we should remove that aggregation node.
Add an optimization rule to remove unnecessary DISTINCT in this scenario:
Since the semi join already performs deduplication of the values in the subquery, that operation is unnecessary and results in an extra exchange and aggregation.
The text was updated successfully, but these errors were encountered: