You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Richard (JIRA)" <ji...@apache.org> on 2015/03/26 08:53:53 UTC

[jira] [Updated] (SQOOP-2037) Sqoop2: HDFSConnector From side need to send BigDecimal for decimal type and JODA for date type in Object array

     [ https://issues.apache.org/jira/browse/SQOOP-2037?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard updated SQOOP-2037:
---------------------------
    Fix Version/s:     (was: 1.99.6)
                   2.0.0

> Sqoop2: HDFSConnector From side need to send BigDecimal for decimal type and JODA for date type in Object array
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: SQOOP-2037
>                 URL: https://issues.apache.org/jira/browse/SQOOP-2037
>             Project: Sqoop
>          Issue Type: Bug
>            Reporter: Veena Basavaraj
>            Assignee: Qian Xu
>             Fix For: 2.0.0
>
>
> At this point, we do not see the HDFS Connector sending BigDecimal for objects that are Sqoop Decimal type, as we prescribe JODA for date objects, we need BigDecimal for decimal objects.
> writeSting is fine, but writeArray needs to according sqoop object format.
> code to be fixed
> {code}
>     rowsRead++;
>       if (HdfsUtils.hasCustomFormat(linkConfiguration, fromJobConfiguration)) {
>         dataWriter.writeArrayRecord(HdfsUtils.formatRecord(linkConfiguration, fromJobConfiguration, line.toString()));
>       } else {
>         dataWriter.writeStringRecord(line.toString());
>       }
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)