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

(Updated 2012-04-09 23:03:39.230896)


Review request for Sqoop.


Changes
-------

Fix minor typos.


Summary
-------

Sqoop import does not support BINARY_FLOAT and BINARY_DOUBLE for Oracle db.

The changes include:
1) Add 3 methods to SqlManager class: toDbSpecificJavaType(), 
toDbSpecificHiveType(), and toDbSpecificAvroType().
2) Override these methods in OracleManager to identify Oracle-specific types 
based on their type name strings.
3) Eliminate uses of reflection from OracleManager. 
4) Factor out special handling for "YEAR" in MySQLManager into a separate 
method: fixupSqlType().
5) Add unit tests to OracleCompatTest for BINARY_FLOAT and BINARY_DOUBLE.

Note that Hive/Avro support for BINARY_FLOAT and BINARY_DOUBLE is not added 
here. It will be implemented in the future.


This addresses bug SQOOP-467.
    https://issues.apache.org/jira/browse/SQOOP-467


Diffs (updated)
-----

  /src/java/org/apache/sqoop/manager/MySQLManager.java 1310648 
  /src/java/org/apache/sqoop/manager/OracleManager.java 1310648 
  /src/java/org/apache/sqoop/manager/SqlManager.java 1310648 
  /src/test/com/cloudera/sqoop/manager/OracleCompatTest.java 1310648 

Diff: https://reviews.apache.org/r/4641/diff


Testing
-------

1) Verified with Oracle XE 10g that new tests pass.
2) Ran ant test, ant test -Dthirdparty=true, and ant checkstyle.


Thanks,

Cheolsoo

Reply via email to