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

Sqoop2: HDFSConnector From side need to send BigDecimal for decimal type and JODA for date type in Object array

    XMLWordPrintableJSON

Details

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

    Description

      At this point, we do not see the HDFS Connector sending BigDecimal for objects that are Sqoop Decimal type, as we prescribe JODA for date objects, we need BigDecimal for decimal objects.

      writeSting is fine, but writeArray needs to according sqoop object format.
      code to be fixed

          rowsRead++;
            if (HdfsUtils.hasCustomFormat(linkConfiguration, fromJobConfiguration)) {
              dataWriter.writeArrayRecord(HdfsUtils.formatRecord(linkConfiguration, fromJobConfiguration, line.toString()));
            } else {
              dataWriter.writeStringRecord(line.toString());
            }
          }
      
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: