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

Sqoop2: Cast exception when try to cast an integer to Avro's Long type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.99.6
    • 1.99.6
    • None
    • None

    Description

      The test scenario is to export a mysql table into a Kite Avro dataset. The mysql table has a ID column INT(8). Sqoop will use FixedPoint in schema. Now extractor tries to read a Sqoop record (Object[] data) and make it a GenericRecord for Avro. As column[0] is FixedPoint, it is expected to be converted as an Avro's Long. Actually the type of data[0] is a Integer. Direct cast Integer to Long does not work. The issue also impacts Short and Byte.

      Attachments

        Issue Links

          Activity

            People

              stanleyxu2005 Qian Xu
              stanleyxu2005 Qian Xu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: