|
@@ -33,6 +33,7 @@ import org.elasticsearch.xpack.ql.expression.Expressions;
|
|
|
import org.elasticsearch.xpack.ql.expression.FieldAttribute;
|
|
|
import org.elasticsearch.xpack.ql.expression.Literal;
|
|
|
import org.elasticsearch.xpack.ql.expression.NamedExpression;
|
|
|
+import org.elasticsearch.xpack.ql.expression.Nullability;
|
|
|
import org.elasticsearch.xpack.ql.expression.ReferenceAttribute;
|
|
|
import org.elasticsearch.xpack.ql.expression.UnresolvedAttribute;
|
|
|
import org.elasticsearch.xpack.ql.expression.UnresolvedStar;
|
|
@@ -286,7 +287,7 @@ public class Analyzer extends ParameterizedRuleExecutor<LogicalPlan, AnalyzerCon
|
|
|
}
|
|
|
return new UnresolvedAttribute(source, enrichFieldName, null, msg);
|
|
|
} else {
|
|
|
- return new ReferenceAttribute(source, enrichFieldName, mappedField.dataType());
|
|
|
+ return new ReferenceAttribute(source, enrichFieldName, mappedField.dataType(), null, Nullability.TRUE, null, false);
|
|
|
}
|
|
|
}
|
|
|
}
|