Class SemanticValidator
java.lang.Object
com.darkcollective.relix.semantic.internal.SemanticValidator
Orchestrates the validation pass (Phase 5 of semantic analysis).
The validator runs after schema inference (Phase 4) so that it
can use the fully-populated SchemaAnnotations map to check
cross-schema constraints without re-deriving schemas.
Checks performed
- Named query target resolution — every
query Name;statement must reference a symbol that is registered in the symbol table. - Relational algebra tree validation — every
QueryRelationSymbolbody and every inlineExpressionQueryTargetexpression is passed to aRelAlgebraValidatorwhich checks:- Set-operation schema compatibility (equal width and compatible types)
- Division column-subset validity
- Projection attribute existence and function arity
- Aggregation group-by and aggregate attribute existence
- Sort attribute existence
All errors are accumulated; the validator never throws.
-
Method Summary