Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-2288

Improve Avro schema generation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.4.5
    • None
    • None
    • None

    Description

      In SQOOP-2252 we've added default value to all Avro schemas - NULL as by default we're creating all columns in Avro as nullable. I think that this can be further improved:

      • Instead of failing back to allow all columns to contain NULL, we should propagate this information from table itself.
      • We could also propagate the column's default value from database.
      • We might even add parameter --map-column-avro-default that will enable to specify any other default value (similar to --map-column-java argument).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jarcec Jarek Jarcec Cecho
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: