public DataType getFieldType(String fieldName, Expression expression) {
        return fieldTypes.getFieldType(fieldName, expression);
    }
Returns the type of the given field.
indexinglanguage/src/main/java/com/yahoo/vespa/indexinglanguage/expressions/TypeContext.java