Skip to content

Conversation

reltuk
Copy link
Contributor

@reltuk reltuk commented Mar 1, 2021

No description provided.

@reltuk reltuk requested a review from zachmu March 1, 2021 23:27
Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG but should have a unit test

@@ -169,6 +169,18 @@ var PlanTests = []QueryPlanTest{
" └─ TableAlias(ot)\n" +
" └─ IndexedTableAccess(othertable on [othertable.i2])\n",
},
{
Query: "SELECT mytable.i, selfjoin.i FROM mytable INNER JOIN mytable selfjoin ON mytable.i = selfjoin.i WHERE selfjoin.i IN (SELECT 1 FROM DUAL)",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to this, should have a unit test in pushdown_test.go

@reltuk reltuk merged commit 833f1a8 into master Mar 2, 2021
@Hydrocharged Hydrocharged deleted the aaron/do-not-pushdown-subquery-expressions branch December 8, 2021 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants