presto-tpcds/src/main/java/io/prestosql/plugin/tpcds/statistics/TableStatisticsDataRepository.java/TableStatisticsDataRepository/writeStatistics
class TableStatisticsDataRepository:    private void writeStatistics(Path path, TableStatisticsData tableStatisticsData)
    {
        File file = path.toFile();
        file.getParentFile().mkdirs();
        try {
            objectMapper
                    .writerWithDefaultPrettyPrinter()
                    .writeValue(file, tableStatisticsData);
            try (FileWriter fileWriter = new FileWriter(file, true)) {
                fileWriter.append('\n');
            }
        }
        catch (IOException e) {
            throw new RuntimeException("Could not save table statistics data", e);
        }
    }