diff --git a/src/main/java/com/socrata/datasync/config/controlfile/ControlFile.java b/src/main/java/com/socrata/datasync/config/controlfile/ControlFile.java index 0510464e..5878a3ed 100644 --- a/src/main/java/com/socrata/datasync/config/controlfile/ControlFile.java +++ b/src/main/java/com/socrata/datasync/config/controlfile/ControlFile.java @@ -104,8 +104,12 @@ public static ControlFile generateControlFile(final String fileToPublish, .useSocrataGeocoding(useSocrataGeocoding) .trimWhitespace(true) .trimServerWhitespace(true) - .overrides(new HashMap()) - .columnStatistics(true); + .overrides(new HashMap()); + + // for replace jobs, calculate column statistics + if (PublishMethod.replace.equals(publishMethod)) + ftc.columnStatistics(true); + } if (isCsv) {