Fail when no symbol for field is found
@@ -305,6 +305,6 @@ class TranslationMap
return plan.getScope()
.tryResolveField(expression)
.filter(ResolvedField::isLocal)
- .map(field -> plan.getFieldMappings().get(field.getHierarchyFieldIndex()));
+ .map(field -> requireNonNull(plan.getFieldMappings().get(field.getHierarchyFieldIndex())));
}
}
