[
https://issues.apache.org/jira/browse/SQOOP-342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13113146#comment-13113146
]
YoungWoo Kim commented on SQOOP-342:
------------------------------------
I would like to suggest 'precision and scale aware' type mappings. As of now,
sqoop generate type mappings with rules that just map sql types to hive types.
For instance, one create a table which contains 'NUMBER(5,0)' column in Oracle,
then the column is mapped as 'DOUBLE' in Hive. but it should be mapped
'INT'type for Hive. We can get precision and scale of resultset from JDBC
metadata. so I believe that the type mappings from DB to Hive for JDBC NUMERIC
and DECIMAL should be precision and scale aware.
> Allow user to override sqoop type mapping
> -----------------------------------------
>
> Key: SQOOP-342
> URL: https://issues.apache.org/jira/browse/SQOOP-342
> Project: Sqoop
> Issue Type: New Feature
> Components: codegen, hive-integration
> Reporter: Jarek Jarcec Cecho
> Assignee: Jarek Jarcec Cecho
> Priority: Minor
>
> It would be nice if user would be able to override any type implicit sqoop
> mapping (from SQL to Java or Hive) on command line.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira