def _build_expression_indicator(spec, context): wrapped = ExpressionIndicatorSpec.wrap(spec) column = Column( id=wrapped.column_id, datatype=wrapped.datatype, is_nullable=wrapped.is_nullable, is_primary_key=wrapped.is_primary_key, ) return RawIndicator( wrapped.display_name, column, getter=wrapped.parsed_expression(context), )