Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Tacokit Data types : Integer, Long, and Date not correctly represented in Schema.

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.

0683p000009M2c5.jpg

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

0683p000009M2cA.jpg.

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

 

 

 

 

 

 

 

 

 

Labels (3)
4 Replies
Anonymous
Not applicable
Author

Hi samba,

 

I fear it is something we'll get solved in next release of the studio: https://jira.talendforge.org/browse/TCOMP-1279

Anonymous
Not applicable
Author

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

 

Anonymous
Not applicable
Author

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

Anonymous
Not applicable
Author

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