You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Cheolsoo Park (JIRA)" <ji...@apache.org> on 2012/08/03 08:44:02 UTC
[jira] [Updated] (SQOOP-536) Blob import doesn't work with avro
1.7.1
[ https://issues.apache.org/jira/browse/SQOOP-536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cheolsoo Park updated SQOOP-536:
--------------------------------
Description:
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.
was:
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 ByteWrapper so that avro GenericData can map it to bytes type.
> 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
>
>
> 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