dongjoon-hyun commented on PR #60649:
URL: https://github.com/apache/spark/pull/60649#issuecomment-6974047241

   On the two decision challenges:
   
   1. A legacy flag: I'd like to follow #60646 (SPARK-61924) and #60157 
(SPARK-60980), which change where a condition is evaluated without a flag. The 
placement changes only for a condition written after a non-deterministic or 
throwable one, or a throwable condition itself, over three or more inner joins.
   2. Keeping a throwable `ON` condition in its join: the placement is not safe 
with a different join order. If the condition is an equi-join key over `b`, 
such as `CASE WHEN b.x IS NULL THEN raise_error('null') ELSE b.x END = d.k`, 
and the new order joins `b` last, the hash join evaluates the key on every row 
of `b`, including the rows that the join with `a` removes. Keeping it safe 
needs the relations below each `ON` clause and the final order, which 
`ExtractFiltersAndInnerJoins` does not return. So I'd keep the trade-off that 
the description states.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to