src/expr-test-util/README.md
Inherits whatever limitations are in repr-test-util, namely that support for different types of Datums is incomplete. Follow the documentation for test_spec_to_row to see which types of Datums are currently supported.
See the README for the lowertest crate for the standard syntax.
The following variants of MirScalarExpr have non-standard syntax:
(<literal> <scalar type>) or <literal>.
If <scalar type> is not specified, then literals will be assigned
default types:
#n, where n is the column number.The following variants of MirRelationExpr have non-standard syntax:
(let x <value> <body>) where x is an ident that
should not match any existing ident in any Let statement in
<value>.(get x), where x is an ident that refers to a
pre-defined source or an ident defined in a let.(union <input1> .. <inputn>).(constant
[[<row1literal1>..<row1literaln>]..[<rowiliteral1>..<rowiliteraln>]]
<RelationType>
)
The TestCatalog has following commands.
(defsource <name> <RelationType>) - defines source <name> with schema <RelationType>The tests in this crate are meant to:
To create arbitrary MIRs in unit tests of functions on MIRs, import this crate as a dev dependency to the crate you are testing.