Skip to content

Commit

Permalink
added check to set columnStatistics only on replace jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
AEscobarCruz committed Oct 26, 2015
1 parent 5808dfe commit 673d9c2
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,12 @@ public static ControlFile generateControlFile(final String fileToPublish,
.useSocrataGeocoding(useSocrataGeocoding)
.trimWhitespace(true)
.trimServerWhitespace(true)
.overrides(new HashMap<String, ColumnOverride>())
.columnStatistics(true);
.overrides(new HashMap<String, ColumnOverride>());

// for replace jobs, calculate column statistics
if (PublishMethod.replace.equals(publishMethod))
ftc.columnStatistics(true);

}

if (isCsv) {
Expand Down

0 comments on commit 673d9c2

Please sign in to comment.