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

Sqoop2: [HDFS Connector] Configurable null values

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.99.4
    • 1.99.5
    • sqoop2-hdfs-connector
    • None

    Description

      Jobs should be able to define what the null values look like.

      Simple table:

      +-------+-------------+------+-----+---------+-------+
      | Field | Type        | Null | Key | Default | Extra |
      +-------+-------------+------+-----+---------+-------+
      | id    | int(11)     | NO   | PRI | 0       |       |
      | name  | varchar(35) | YES  |     | NULL    |       |
      +-------+-------------+------+-----+---------+-------+
      

      Content:

      +----+------+
      | id | name |
      +----+------+
      |  1 |      |
      |  2 | test |
      +----+------+
      2 rows in set (0.00 sec)
      

      Assuming the above blank "name" is null, then we should be able to tell the HDFS connector to choose different representations of NULL. Current default is NULL, but a blank value may be preferred instead:

      1,NULL
      

      or

      1,
      

      or

      1,-
      

      etc.

      Attachments

        1. SQOOP-1678.3.patch
          28 kB
          Abraham Elmahrek
        2. SQOOP-1678.2.patch
          29 kB
          Abraham Elmahrek
        3. SQOOP-1678.1.patch
          25 kB
          Abraham Elmahrek
        4. SQOOP-1678.0.patch
          25 kB
          Abraham Elmahrek

        Issue Links

          Activity

            People

              abec Abraham Elmahrek
              abec Abraham Elmahrek
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: