Builds a [MirRelationExpr] from a string. See [mz_lowertest::to_json] for the syntax.
(s: &str, catalog: &TestCatalog)
| 40 | /// |
| 41 | /// See [mz_lowertest::to_json] for the syntax. |
| 42 | pub fn build_rel(s: &str, catalog: &TestCatalog) -> Result<MirRelationExpr, String> { |
| 43 | deserialize( |
| 44 | &mut tokenize(s)?.into_iter(), |
| 45 | "MirRelationExpr", |
| 46 | &mut MirRelationExprDeserializeContext::new(catalog), |
| 47 | ) |
| 48 | } |
| 49 | |
| 50 | /// Turns the json version of a [MirRelationExpr] into the [mz_lowertest::to_json] |
| 51 | /// syntax. |