You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Qian Xu (JIRA)" <ji...@apache.org> on 2014/10/13 04:36:34 UTC
[jira] [Commented] (SQOOP-1581) Sqoop2: LoaderContext has the wrong
Schema
[ https://issues.apache.org/jira/browse/SQOOP-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14168903#comment-14168903 ]
Qian Xu commented on SQOOP-1581:
--------------------------------
It'd be nice to have {{fromSchema}} and {{toSchema}} in {{LoaderContext}}.
> Sqoop2: LoaderContext has the wrong Schema
> ------------------------------------------
>
> Key: SQOOP-1581
> URL: https://issues.apache.org/jira/browse/SQOOP-1581
> Project: Sqoop
> Issue Type: Bug
> Affects Versions: from/to
> Reporter: Abraham Elmahrek
> Fix For: 1.99.4
>
>
> {code}
> if (!isTest) {
> // Using the TO schema since the IDF returns data in TO schema
> schema = ConfigurationUtils.getConnectorSchema(Direction.TO, conf);
> ...
> }
> // Create loader context
> LoaderContext loaderContext = new LoaderContext(subContext, reader, schema);
> {code}
> In some cases, the matcher will use the FROM schema. The loader should provide the FROM schema in this case.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)