MaxGekk opened a new pull request, #40340:
URL: https://github.com/apache/spark/pull/40340

   ### What changes were proposed in this pull request?
   In the PR, I propose to add new function `try_aes_decrypt()` which binds to 
new expression `TryAesDecrypt` that is a runtime replaceable expression of the 
combination of `TryEval` and `AesDecrypt`.
   
   ### Why are the changes needed?
   The changes improve user experience with Spark SQL. The existing function 
`aes_decrypt()` fails w/ an exception as soon as it faces to some invalid input 
that cannot be decrypted, and the rest (even if the values can be decrypted) is 
ignored. New function returns `NULL` on bad inputs and decrypts other values.
   
   ### Does this PR introduce _any_ user-facing change?
   No. This PR just extends existing API.
   
   ### How was this patch tested?
   By running the affected test suites:
   ```
   $ build/sbt "sql/test:testOnly 
org.apache.spark.sql.expressions.ExpressionInfoSuite"
   $ build/sbt "sql/testOnly *ExpressionsSchemaSuite"
   ```


-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to