feat: validate predicates on read_aggregate

pull/24376/head
Edd Robinson 2021-09-24 14:24:37 +01:00
parent 621b26166c
commit c107434d20
1 changed files with 1 additions and 0 deletions

View File

@ -327,6 +327,7 @@ impl Table {
aggregates: &'input [(ColumnName<'input>, AggregateType)],
) -> Result<ReadAggregateResults> {
let (meta, row_groups) = self.filter_row_groups(&predicate);
meta.validate_exprs(predicate.iter())?;
// Filter out any column names that we do not have data for.
let schema = ResultSchema {