private FileStatus[] listFilesByTable(FileSystem fs, Table t) throws IOException {
    List<FileStatus> tmp = new ArrayList<>();
    RemoteIterator<LocatedFileStatus> f = fs.listFiles(new Path(getWarehouseDir() + "/" +
            t.toString().toLowerCase()), true);

    while (f.hasNext()) {
      LocatedFileStatus file = f.next();
      if (FileUtils.HIDDEN_FILES_PATH_FILTER.accept(file.getPath())) {
        tmp.add(file);
      }
    }
    return tmp.toArray(new FileStatus[0]);
  }
Test the query correctness and directory layout for ACID table conversion
1. Insert a row to Non-ACID table
2. Convert Non-ACID to ACID table
3. Perform Major compaction
4. Insert a new row to ACID table
5. Perform another Major compaction
6. Clean
@throws Exception
ql/src/test/org/apache/hadoop/hive/ql/TestTxnCommands2.java