I'm having a little trouble determining what syntax to use for transforming CSV files of undetermined length. I'm trying this:
{
firstName: payload.FIRST_NAME
}
But I get the error:
sjsonnet.Error: attempted to index a array with string FIRST_NAME
It looks like xtrasonnet is loading all rows into memory and then expecting the transformation to specify a row index. What I'd like to do is stream through the input CSV file and have it apply the above transformation to each row. Is this possible?
I'm having a little trouble determining what syntax to use for transforming CSV files of undetermined length. I'm trying this:
But I get the error:
It looks like xtrasonnet is loading all rows into memory and then expecting the transformation to specify a row index. What I'd like to do is stream through the input CSV file and have it apply the above transformation to each row. Is this possible?