Search in sources :

Example 1 with FormulaValidator

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));
}
Also used : FormulaValidator(com.yahoo.elide.datastores.aggregation.metadata.FormulaValidator)

Aggregations

FormulaValidator (com.yahoo.elide.datastores.aggregation.metadata.FormulaValidator)1