Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-1631

int attribute in pojo is transformed to double in a Record

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.1.17
    • None
    • None
    • All
    • Small

    Description

      I have got this class:

      public class CompletePayload {
          final private int status;
          final private Map<String, String> headers;
          final private Object body;
      }
      

      That is returned by producer:

          @Producer
          public CompletePayload next() {
              if (!done) {
                  done = true;
                  return client.buildFixedRecord(client.execute(config));
              }
      
              return null;
          }
      

      when I retrieve it as a record:

              Job.components() //
                      .component("emitter", "REST://Input?" + configStr) //
                      .component("out", "test://collector") //
                      .connections() //
                      .from("emitter") //
                      .to("out") //
                      .build() //
                      .run();
       final List<Record> records = handler.getCollectedData(Record.class);
      

      It is a double :

      Attachments

        Activity

          People

            emmanuel_g emmanuel gallois
            ypiel Yves Piel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: