Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Greetings,
i m currently developing an output component using the new Component kit(Version 1.1.1 as recommended in the documentation) , i have inputted the following data into the component, and my expectation is to get the correct type names BOOLEAN, STRING, DOUBLE, LONG, DATE, and INTEGER as shown in the pic below.
In the @ElemntListener annotated function when i print the content of incomming record like this
@ElementListener
public void onNext(@Input final Record defaultInput) {List<Schema.Entry> entries = defaultInput.getSchema().getEntries();
System.out.println("=============================");
entries.forEach(System.out::println)}.....
I get the following results which is not entirely correct
.
As can be seen, boolean and Strings are correctly mapped, but Long and Integer types are mapped as Double, while Date is mapped as String.
Please how can i solve this problem. thanks and
Best regards
Samba
Hi samba,
I fear it is something we'll get solved in next release of the studio: https://jira.talendforge.org/browse/TCOMP-1279
Hi Romain,
thanks for the quick reply, by next version of studio do you mean version 7.2.xxx? I can see that the open source version is already available on Sourceforge, is the problem already solved there or should i wait for another release?
Thank you and
Best Regards.
Samba
Hi Romain,
Will this fix also allow comments to properly propagate to the OnNext function? Behavior currently appears to eat the comments from the schema along with only providing the closest guess for a datatype from the internal json library.
Thanks,
Alec
Hi @lli ,
Comments should be forwarded in the rowStruct (studio schema) but not between records, this is not a way to pass data between components - I guess this is what you were heading for. If you need that, ensure to enrich the record with the corresponding data.
Romain