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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Samridhi
Contributor II
Contributor II

Null columns not coming in the Record.getSchema() when creating a dynamic Custom component for talend

I am trying to create a custom component that will accept dynamic schema inputs and create the extract in a particular format. But when doing  getSchema using Record Interface its not returning columns with null values and 1 or 2 columns are coming twice. So for each row i am getting different no of columns in the getSchema method.

@ElementListener
    public void onNext(
            @Input final Record defaultInput,
            @Output final OutputEmitter<Record> defaultOutput) {
        // this is the method allowing you to handle the input(s) and emit the output(s)
        // after some custom logic you put here, to send a value to next element you can use an
        // output parameter and call emit(value).
        System.out.println(defaultInput.getSchema());

 

 

Labels (2)
2 Replies
Anonymous
Not applicable

Hi, 

I am also facing the same issue. I am also looking for a method to have column names populated just once, and call a method to do something after all rows of data are retrieved.

Any help would be appreciated.

Thanks

Samridhi
Contributor II
Contributor II
Author

Can anyone please help on this issue