Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Sqoop >> mail # dev >> Review Request: SQOOP-536 Blob import doesn't work with avro 1.7.1


Copy link to this message
-
Review Request: SQOOP-536 Blob import doesn't work with avro 1.7.1

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/5344/
-----------------------------------------------------------

Review request for Sqoop and Jarek Cecho.
Description
-------

Blob import fails because byte[] is not mapped to avro bytes type. Wrapping byte[] as ByteBuffer fixes the problem.
This addresses bug SQOOP-536.
    https://issues.apache.org/jira/browse/SQOOP-536
Diffs
-----

  /src/java/org/apache/sqoop/mapreduce/AvroImportMapper.java 1368365

Diff: https://reviews.apache.org/r/5344/diff/
Testing
-------

I verified with avro 1.5.3 (current) and 1.7.1 that the unit tests pass:

ant test
ant test -Dthirdparty=true
ant checkstyle
Thanks,

Cheolsoo Park

+
Jarek Cecho 2012-08-03, 20:19