use of com.yahoo.elide.datastores.aggregation.metadata.FormulaValidator in project elide by yahoo.
the class TemplateConfigValidator method checkForCycles.
/**
* Verify that there is no reference loop for given {@link SQLTable}.
* @param sqlTable Queryable to validate.
*/
private void checkForCycles(SQLTable sqlTable, MetaDataStore metaDataStore) {
FormulaValidator formulaValidator = new FormulaValidator(metaDataStore);
sqlTable.getColumnProjections().forEach(column -> formulaValidator.parse(sqlTable, column));
}
Aggregations