Skip to content

Commit

Permalink
Merge pull request #111 from socrata/ae_cardinality
Browse files Browse the repository at this point in the history
added default control field type columnStatistics
  • Loading branch information
AEscobarCruz committed Oct 26, 2015
2 parents 26db0e0 + 673d9c2 commit 27a4eda
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ public static ControlFile generateControlFile(final String fileToPublish,
.trimWhitespace(true)
.trimServerWhitespace(true)
.overrides(new HashMap<String, ColumnOverride>());

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

}

if (isCsv) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public class FileTypeControl {
public Map<String, LocationColumn> syntheticPoints;
public Boolean useSocrataGeocoding;
public String action;
public Boolean columnStatistics;

public FileTypeControl() {}

Expand Down Expand Up @@ -142,6 +143,7 @@ public Set<String> lookupTimestampFormatting() {
public FileTypeControl hasHeaderRow(boolean h) { hasHeaderRow = h; return this;}

public FileTypeControl action(String a) { action = a; return this;}
}

public FileTypeControl columnStatistics(boolean u) { columnStatistics = u; return this; }


0 comments on commit 27a4eda

Please sign in to comment.