xumingming commented on PR #60178:
URL: https://github.com/apache/spark/pull/60178#issuecomment-6857728542

   Thanks for the review, @spark-test, and for requesting it, @HyukjinKwon!
   
   Follow-up: `[SPARK-60934][SQL] Fix AES classification and pull-out`
   
   Changed:
   1. A fixed `to_binary` or `encode` IV is classified by value and stays 
deterministic.
   2. A foldable mode or IV that throws is treated as unknown, so a dead `CASE` 
branch no longer fails analysis.
   3. `GROUP BY`, `ORDER BY`, and `DISTRIBUTE BY` over `transform(arr, x -> 
aes_encrypt(x, key))` pull out the `transform`, so `x` stays bound.
   4. Only a built-in `StaticInvoke` (`scalarFunction` empty) is safe to 
duplicate.
   5. The determinism comments now match the classifier: a fixed non-empty IV 
does not draw, and an empty, per-row, or default CBC/GCM IV does.
   6. The seedless `TABLESAMPLE` self-`EXCEPT` test runs with adaptive 
execution on and off.
   
   Left as they are, matching `rand()`:
   1. `deterministic` stays the signal, so aggregates, joins, `CALL`, column 
`DEFAULT` (including `INSERT` into an existing table), filter pushdown, 
partition pruning, and dynamic partition pruning still reject or stop at a 
generated IV or a seedless sample.
   2. A subquery over a seedless sample still fails in `GROUP BY`, `ORDER BY`, 
and joins.
   3. A multi-reference CTE stays materialized when at most one reference reads 
the generated-IV column.
   4. Multi-insert and command CTEs copied before `InlineCTE` can still draw 
twice, and the description now limits "evaluated once" to CTEs that reach 
`InlineCTE`.
   


-- 
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