GitHub user mattyb149 opened a pull request:
https://github.com/apache/nifi/pull/920
NIFI-2623: Fixed support for binary types in SelectHiveQL
This code was originally copied from JdbcCommon, where arrays are treated
as binary (byte array, e.g.) and getBytes() is called on the ResultSet.
In Hive, getBytes() is not supported but binary objects are already byte
arrays or ByteBuffers, so they just need to be put into the Avro record as-is.
Arrays were removed from the binary type processing because they are a
first-class (albeit complex) data type in Hive. As of this PR they will be
handled as Strings, but
[NIFI-2622](https://issues.apache.org/jira/browse/NIFI-2622) describes and
prescribes the changes needed to correctly handle arrays.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mattyb149/nifi NIFI-2623
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/nifi/pull/920.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 #920
----
commit 83aac5bb098a59b9a9eb971d521296b2eea801ee
Author: Matt Burgess <[email protected]>
Date: 2016-08-23T14:17:14Z
NIFI-2623: Fixed support for binary types in SelectHiveQL
----
---
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 [email protected] or file a JIRA ticket
with INFRA.
---