GitHub user jiangxb1987 opened a pull request: https://github.com/apache/spark/pull/16057
[SPARK-18624][SQL] Implicit cast complex types ## What changes were proposed in this pull request? Currently `ImplicitTypeCasts` doesn't handle casts between `ArrayType`s, this is not convenient, we should add a rule to enable casting from `ArrayType(InternalType)` to `ArrayType(newInternalType)`. Goals: 1. Add a rule to `ImplicitTypeCasts` to enable casting between `ArrayType`s; 2. Simplify `Percentile` and `ApproximatePercentile`. ## How was this patch tested? Updated test cases in `TypeCoercionSuite`. You can merge this pull request into a Git repository by running: $ git pull https://github.com/jiangxb1987/spark implicit-cast-complex-types Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/16057.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #16057 ---- commit e4610109f7b0559863122c8d01d470b08d462f86 Author: jiangxingbo <jiangxb1...@gmail.com> Date: 2016-11-29T09:42:39Z Support implict type casts between ArrayTypes. commit 374b4f82bb59ef4ea3279c22dd6e9cd22f710ec9 Author: jiangxingbo <jiangxb1...@gmail.com> Date: 2016-11-29T10:10:55Z update Percentile and ApproximatePercentile. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org