GitHub user maropu opened a pull request: https://github.com/apache/spark/pull/20135
[SPARK-22937][SQL] SQL elt output binary for binary inputs ## What changes were proposed in this pull request? This pr modified `elt` to output binary for binary inputs. `elt` in the current master always output data as a string. But, in some databases (e.g., MySQL), if all inputs are binary, `elt` also outputs binary (Also, this might be a small surprise). This pr is related to #19977. ## How was this patch tested? Added tests in `SQLQueryTestSuite` and `TypeCoercionSuite`. You can merge this pull request into a Git repository by running: $ git pull https://github.com/maropu/spark SPARK-22937 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/20135.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 #20135 ---- commit 733043853c5f60eba042af9a9cd05a6e11a199e9 Author: Takeshi Yamamuro <yamamuro@...> Date: 2018-01-02T13:13:09Z SQL elt output binary for binary inputs ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org