MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / test_concat

Function test_concat

src/expr/src/interpret.rs:1741–1756  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1739
1740 #[mz_ore::test]
1741 fn test_concat() {
1742 let expr = MirScalarExpr::call_variadic(
1743 Concat,
1744 vec![
1745 MirScalarExpr::column(0),
1746 MirScalarExpr::literal_ok(Datum::String("a"), ReprScalarType::String),
1747 MirScalarExpr::literal_ok(Datum::String("b"), ReprScalarType::String),
1748 ],
1749 );
1750
1751 let relation = ReprRelationType::new(vec![ReprScalarType::String.nullable(false)]);
1752 let arena = RowArena::new();
1753 let interpreter = ColumnSpecs::new(&relation, &arena);
1754 let spec = interpreter.expr(&expr);
1755 assert!(spec.range.may_contain(Datum::String("blab")));
1756 }
1757
1758 #[mz_ore::test]
1759 fn test_eval_range() {

Callers

nothing calls this directly

Calls 1

exprMethod · 0.45

Tested by

no test coverage detected