-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Background
The current tests' data model has the following assertions:
type::{
name: Assertion,
type: {
one_of: [
SyntaxSuccessAssertion,
SyntaxFailAssertion,
StaticAnalysisFailAssertion,
EvaluationSuccessAssertion,
EvaluationFailAssertion
]
}
}
In addition, the current model does not support the typing environment to be used for type checking and inference.
On the other side, in partiql-lang-kotlin we have unit tests [1] [2] [3] for type checking and inference. In addition, we also have newer unit-tests [4] as part of PartiQLSchemaInferencer development that assert the correct type checking of PartiQL queries resulting to a StaticType as the output Schema. In addition, in partiql-lang-rust, we are introducing type checking and inference functionality [5] which will require the corresponding tests.
Ask
As PartiQL maintainer I want to have the required partiql-tests assertions for type checking and inference so that I can do the following: (1) write appropriate conformance tests for type checking and inference, and (2) extract the current unit-tests in partiql-lang-kotlin.
DoD
- The model for assertions and typing environment is created.
- As part of a separate GitHub issue related to this issue, the initial tests are ported from
partiql-lang-kotlinare ported topartiql-tests. - As part of a separate GitHub issue related to this issue, the conformance test generators in PartiQL Kotlin and Rust implementations can generate the corresponding tests and make assertions based on them.