cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Need all the columns pipeline using expression in mapper snap.

dinkar
New Contributor

when we use $.keys() below image which is showing list of columns for all the records which leads to performance issue (for example we have 1 lakh records, it will check for all 1 lakh records) ... Need only first row columns... Please help with expression which gives all columns for only 1 record.

dinkar_0-1712040545829.png

 

3 REPLIES 3

SpiroTaleski
Valued Contributor

@dinkar 

Instead of going for all the rows, using the Head snap you will be able to get only first row and then get all the columns using keys() function.

dinkar
New Contributor

I need to know columns present in input pipeline

SpiroTaleski
Valued Contributor

@dinkar 

Check the Head Snap, you will be able to limit to a first row from the input stream, and then to get columns from that first row using the same function($.keys())