Skip to content

Commit

Permalink
added default control field type and autop-generated value:true calle…
Browse files Browse the repository at this point in the history
…d columnStatistics. The new default ensures that we calculate cardinality on ingress.

changed location where computeStatistics is set, since no need to set it if we are deleting.
  • Loading branch information
AEscobarCruz committed Oct 26, 2015
1 parent 26db0e0 commit 5808dfe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ public static ControlFile generateControlFile(final String fileToPublish,
.useSocrataGeocoding(useSocrataGeocoding)
.trimWhitespace(true)
.trimServerWhitespace(true)
.overrides(new HashMap<String, ColumnOverride>());
.overrides(new HashMap<String, ColumnOverride>())
.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 5808dfe

Please sign in to comment.