Skip to content

Commit

Permalink
#637 fix histogram used current timestamp column in source detail
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-wonjune committed Dec 3, 2018
1 parent 236d9e5 commit 9498ce2
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export class InformationDataSourceComponent extends AbstractPopupComponent imple
this._setProcessStatus(changes.ingestionProcess.currentValue);
// if success ingestion
if (changes.ingestionProcess.currentValue['message'] === 'END_INGESTION_JOB') {
this._getFieldStats(this.getFields[this._getFindIndexTimestampField()].name, this.datasource.engineName)
this._getFieldStats(this.timestampColumn.name, this.datasource.engineName);
}
}
}
Expand Down Expand Up @@ -680,17 +680,6 @@ export class InformationDataSourceComponent extends AbstractPopupComponent imple
.catch((error) => this.commonExceptionHandler(error));
}

/**
* time stamp 필드인 index 얻기
* @returns {number}
* @private
*/
private _getFindIndexTimestampField(): number {
return _.findIndex(this.getFields, (field) => {
return field.role === FieldRole.TIMESTAMP;
});
}

/**
* ingestion scope
* @returns {any}
Expand Down

0 comments on commit 9498ce2

Please sign in to comment.