It looks like this function makes a strong assumption that the order of the columns in this TSV file is the same as the order in the data schema.  That should be documented somewhere.