{"push_id":1155265666,"size":1,"distinct_size":1,"ref":"refs/heads/branch-2.0","head":"8e371670fe71b1745f56e801ffadcaca185b3e44","before":"161d02db6d3b6148c8b561c6ccb5e54cafb7619d","commits":[{"sha":"8e371670fe71b1745f56e801ffadcaca185b3e44","author":{"name":"frreiss","email":"b2f409dba498dd996d8771bf1c667af870613edc@us.ibm.com"},"message":"[SPARK-15370][SQL] Update RewriteCorrelatedScalarSubquery rule to fix COUNT bug\n\n## What changes were proposed in this pull request?\nThis pull request fixes the COUNT bug in the `RewriteCorrelatedScalarSubquery` rule.\n\nAfter this change, the rule tests the expression at the root of the correlated subquery to determine whether the expression returns NULL on empty input. If the expression does not return NULL, the rule generates additional logic in the Project operator above the rewritten subquery.  This additional logic intercepts NULL values coming from the outer join and replaces them with the value that the subquery's expression would return on empty input.\n\n## How was this patch tested?\nAdded regression tests to cover all branches of the updated rule (see changes to `SubquerySuite.scala`).\nRan all existing automated regression tests after merging with latest trunk.\n\nAuthor: frreiss <frreiss@us.ibm.com>\n\nCloses #13155 from frreiss/master.\n\n(cherry picked from commit 9770f6ee60f6834e4e1200234109120427a5cc0d)\nSigned-off-by: Herman van Hovell <hvanhovell@databricks.com>","distinct":true,"url":"https://api.github.com/repos/apache/spark/commits/8e371670fe71b1745f56e801ffadcaca185b3e44"}]}
{"actor":{"display_login":"asfgit"}}