Track expression dependencies (#2113)

This commit is contained in:
Tim Sylvester
2024-03-07 10:36:50 -08:00
committed by GitHub
parent 9614b566d8
commit 25678a4d99
105 changed files with 1082 additions and 339 deletions

View File

@@ -29,7 +29,7 @@ bool isSearchableRuntimeType(const type::Type& type) {
} // namespace
In::In(std::unique_ptr<Expression> needle_, std::unique_ptr<Expression> haystack_)
: Expression(Kind::In, type::Boolean),
: Expression(Kind::In, type::Boolean, depsOf(needle_) | depsOf(haystack_)),
needle(std::move(needle_)),
haystack(std::move(haystack_)) {
assert(isComparableType(needle->getType()));