presto-orc/src/main/java/io/prestosql/orc/OrcWriter.java/OrcWriter/validate
class OrcWriter:    public void validate(OrcDataSource input)
            throws OrcCorruptionException
    {
        checkState(validationBuilder != null, "validation is not enabled");
        validateFile(validationBuilder.build(), input, types, hiveStorageTimeZone);
    }