change the sequence of writing files
format modification
solve filenotexsitexception when table has an empty partition
clean code for writeColumnPartition