sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bilung Lee" <bleeapa...@gmail.com>
Subject Re: Review Request: SQOOP-352 Export of avro data imported from database table (using sqoop import) fails on year
Date Thu, 01 Mar 2012 05:17:15 GMT

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

(Updated 2012-03-01 05:17:15.849853)


Review request for Sqoop, Arvind Prabhakar, Tom White, and Jarek Cecho.


Summary
-------

MySQL YEAR is mapped to java.sql.Date when importing to HDFS. On the way back an exception
is thrown because the date and month fields are truncated (not used) - this is the MySQL behaviour.


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


Diffs
-----

  ./src/java/org/apache/sqoop/hive/TableDefWriter.java 1293040 
  ./src/java/org/apache/sqoop/manager/ConnManager.java 1293040 
  ./src/java/org/apache/sqoop/manager/MySQLManager.java 1293040 
  ./src/java/org/apache/sqoop/manager/OracleManager.java 1293040 
  ./src/java/org/apache/sqoop/manager/SqlManager.java 1293040 
  ./src/java/org/apache/sqoop/mapreduce/JdbcExportJob.java 1293040 
  ./src/java/org/apache/sqoop/orm/AvroSchemaGenerator.java 1293040 
  ./src/java/org/apache/sqoop/orm/ClassWriter.java 1293040 
  ./src/test/com/cloudera/sqoop/TestConnFactory.java 1293040 
  ./src/test/com/cloudera/sqoop/manager/MySQLCompatTest.java 1293040 

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


Testing
-------


Thanks,

Bilung


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message