You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Miki Tebeka (Created) (JIRA)" <ji...@apache.org> on 2011/11/28 19:53:40 UTC
[jira] [Created] (SQOOP-398) Sqoop to avro saves NUMERIC as strings
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
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
[jira] [Commented] (SQOOP-398) Sqoop to avro saves NUMERIC as
strings
Posted by "Jarek Jarcec Cecho (Commented) (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Resolved] (SQOOP-398) Sqoop to avro saves NUMERIC as
strings
Posted by "Jarek Jarcec Cecho (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SQOOP-398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jarek Jarcec Cecho resolved SQOOP-398.
--------------------------------------
Resolution: Won't Fix
Fix Version/s: 1.4.0-incubating
Assignee: Jarek Jarcec Cecho
> 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
> Assignee: Jarek Jarcec Cecho
> 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