diff --git a/iox_query/src/plan/influxql/expr_type_evaluator.rs b/iox_query/src/plan/influxql/expr_type_evaluator.rs
index ff05735f45..f696940ae2 100644
--- a/iox_query/src/plan/influxql/expr_type_evaluator.rs
+++ b/iox_query/src/plan/influxql/expr_type_evaluator.rs
@@ -1,31 +1,32 @@
use crate::plan::influxql::field::field_by_name;
-use crate::plan::influxql::field_mapper::FieldMapper;
+use crate::plan::influxql::field_mapper::map_type;
use datafusion::common::{DataFusionError, Result};
use influxdb_influxql_parser::common::{MeasurementName, QualifiedMeasurementName};
use influxdb_influxql_parser::expression::{Expr, UnaryOperator, VarRefDataType};
use influxdb_influxql_parser::literal::Literal;
use influxdb_influxql_parser::select::{Dimension, FromMeasurementClause, MeasurementSelection};
use itertools::Itertools;
+use predicate::rpc_predicate::QueryNamespaceMeta;
/// Evaluate the type of the specified expression.
///
/// Derived from [Go implementation](https://github.com/influxdata/influxql/blob/1ba470371ec093d57a726b143fe6ccbacf1b452b/ast.go#L4796-L4797).
pub(crate) fn evaluate_type(
+ namespace: &dyn QueryNamespaceMeta,
expr: &Expr,
from: &FromMeasurementClause,
- fm: &dyn FieldMapper,
) -> Result