问题 Reorder column in a csv in apache nifi. Input - I have multiple files which have same columns but are in different order. Output - Scrape some columns and store in same order. 回答1: In my case, because I'm sure those columns will be included in all CSV files, I just need to reorder them. So I use QueryRecord to reorder my csv files. For example, here're my csv files: \\file1 name, age, location, gender Jack, 40, TW, M Lisa, 30, CA, F \\file2 name, location, gender, age Mary, JP, F, 25 Kate, DE