[
https://issues.apache.org/jira/browse/SQOOP-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13428388#comment-13428388
]
Hudson commented on SQOOP-536:
------------------------------
Integrated in Sqoop-ant-jdk-1.6 #132 (See
[https://builds.apache.org/job/Sqoop-ant-jdk-1.6/132/])
SQOOP-536. Blob import doesn't work with avro 1.7.1.
(Cheolsoo Park via Jarek Jarcec Cecho) (Revision 1369193)
Result = SUCCESS
jarcec :
Files :
* /sqoop/trunk/src/java/org/apache/sqoop/mapreduce/AvroImportMapper.java
> Blob import doesn't work with avro 1.7.1
> ----------------------------------------
>
> Key: SQOOP-536
> URL: https://issues.apache.org/jira/browse/SQOOP-536
> Project: Sqoop
> Issue Type: Bug
> Affects Versions: 1.4.1-incubating
> Reporter: Cheolsoo Park
> Assignee: Cheolsoo Park
> Fix For: 1.4.2
>
> Attachments: SQOOP-536.patch
>
>
> I see the following test failures when updating avro dependency from 1.5.3 to
> 1.7.1:
> - MySQLLobAvroImportTest
> - OracleLobAvroImportTest
> The reason is because byte[] fails to be mapped to avro bytes type (see below
> the isBytes() method of GenericData in avro 1.7.1).
> {code}
> /** Called by the default implementation of {@link #instanceOf}.*/
> protected boolean isBytes(Object datum) {
> return datum instanceof ByteBuffer;
> }
> {code}
> The fix is to wrap byte[] as ByteBuffer so that avro GenericData can map it
> to bytes type.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira