Do not add reconciliation statistics on columns without types

This commit is contained in:
Antonin Delpeuch 2017-07-14 12:53:54 +01:00
parent 6501c235e8
commit 3eadefe613

View File

@ -219,12 +219,15 @@ public class DataExtensionChange implements Change {
int cellIndex = _firstNewCellIndex + i; int cellIndex = _firstNewCellIndex + i;
Column column = new Column(cellIndex, name); Column column = new Column(cellIndex, name);
ReconType columnType = _columnTypes.get(i);
column.setReconConfig(new DataExtensionReconConfig( column.setReconConfig(new DataExtensionReconConfig(
_service, _service,
_identifierSpace, _identifierSpace,
_schemaSpace, _schemaSpace,
_columnTypes.get(i))); columnType));
if (columnType != null) {
column.setReconStats(ReconStats.create(project, cellIndex)); column.setReconStats(ReconStats.create(project, cellIndex));
}
try { try {
project.columnModel.addColumn(_columnInsertIndex + i, column, true); project.columnModel.addColumn(_columnInsertIndex + i, column, true);