Uploaded image for project: 'Sqoop'
  1. Sqoop
  2. SQOOP-1986 Sqoop2: Schema matching improvements
  3. SQOOP-1720

Schema Type Mappings between the From and To

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: sqoop2-framework
    • Labels:
      None

      Description

      It is unclear today as to what is the optimal place where the type mappings described in the SQOOP-515 between the From and To can happen.

      For example in case of HIVE, if the IDF FixedPoint size attribute is given, the destination schema column type might be dependent on the value of this size is in the corresponding From schema.

      For example in Hive.
      Default: bigint
      if size < 1 then tinyint
      if size < 2 then smallint
      if size < 4 then int
      Read more: https://issues.apache.org/jira/secure/attachment/12589331/Sqoop2Datatypes.pdf

      To summarize the question s how does the ToInitializer get access to the schema from the "FROM"

      ?? InitializerContext

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                vybs Veena Basavaraj
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: