GitHub user maropu opened a pull request:
https://github.com/apache/spark/pull/19977
[SPARK-22771][SQL] Concatenate binary inputs into a binary output
## What changes were proposed in this pull request?
This pr modified `concat` to concat binary inputs into a single binary
output.
`concat` in the current master always output data as a string. But, in some
databases (e.g., PostgreSQL), if all inputs are binary, `concat` also outputs
binary.
## How was this patch tested?
Added tests in `SQLQueryTestSuite`.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/maropu/spark SPARK-22771
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/19977.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 #19977
----
commit 8b7dcc9674a6a1c724b43f4516771b5d4d3bbacd
Author: Takeshi Yamamuro <[email protected]>
Date: 2017-12-14T08:39:43Z
Concat binary as binary
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]