Qian Xu created SQOOP-1987:
------------------------------

             Summary: Sqoop2: Add a NullMatcher
                 Key: SQOOP-1987
                 URL: https://issues.apache.org/jira/browse/SQOOP-1987
             Project: Sqoop
          Issue Type: Sub-task
            Reporter: Qian Xu
            Assignee: Qian Xu


The {{MatcherFactory}} will create different matcher according to toSchema and 
fromSchema conditions.

In {{LocationMatcher}}, it has a rule 0
{code}
  public Object[] getMatchingData(Object[] fields) {
    if (getToSchema().isEmpty()) {
      // No destination schema found. No need to convert anything.
      return fields;
    }
{code}

I'm thinking we can create a third matcher {{NullMatcher}}, which simply return 
input fields as result.



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

Reply via email to