pentaho spoon - How to find columns count of csv(Excel) sheet in ETL? -


to count rows of csv file can use files rows count input in etl. how find number columns of csv file?

just read first row of csv file using text-file-input setting header rows 0. usually, first row contains field names. if read whole row single field, can use split-field-to-rows have single fieldname per row , number of rows tells number of fields. there other ways, 1 prepares subsequent metadata injection - if that's have in mind.


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -