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] [Created] (SQOOP-536) Blob import doesn't work with avro 1.7.1

Cheolsoo Park created SQOOP-536:
-----------------------------------

             Summary: 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 ByteWrapper 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

        

[jira] [Commented] (SQOOP-536) Blob import doesn't work with avro 1.7.1

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Updated] (SQOOP-536) Blob import doesn't work with avro 1.7.1

Posted by "Cheolsoo Park (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SQOOP-536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cheolsoo Park updated SQOOP-536:
--------------------------------

    Attachment: SQOOP-536.patch

Attached is a patch that wraps byte[] as ByteBuffer.
                
> 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

        

[jira] [Updated] (SQOOP-536) Blob import doesn't work with avro 1.7.1

Posted by "Cheolsoo Park (JIRA)" <ji...@apache.org>.
     [ 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