You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Jarek Jarcec Cecho (Commented) (JIRA)" <ji...@apache.org> on 2011/12/04 21:54:40 UTC

[jira] [Commented] (SQOOP-398) Sqoop to avro saves NUMERIC as strings

    [ https://issues.apache.org/jira/browse/SQOOP-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162480#comment-13162480 ] 

Jarek Jarcec Cecho commented on SQOOP-398:
------------------------------------------

Hi Miki,
we've introduced new parameter --map-column-java in version 1.4.0 that you can use for changing default type mapping to your own - in this case to double. Usage is simple:

sqoop .... --map-column-java myNumericColumn=Double ...

I'm not feeling comfortable with changing current implementation because it breaks backward compatibility for users that are fine with the default mapping to string (even thought that it's really strange).

Jarcec
                
> Sqoop to avro saves NUMERIC as strings
> --------------------------------------
>
>                 Key: SQOOP-398
>                 URL: https://issues.apache.org/jira/browse/SQOOP-398
>             Project: Sqoop
>          Issue Type: Bug
>            Reporter: Miki Tebeka
>             Fix For: 1.4.0-incubating
>
>
> When sqooping to Avro from PostgreSQL, NUMERIC columns are converted to strings and not doubles.
> (Also posted [here|https://issues.cloudera.org/browse/DISTRO-341]).

--
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