vortex-expr 0.94.0

Analyses and rewrites over Vortex expression trees
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright the Vortex contributors

use vortex_array::scalar_fn::builtin::literal::Literal;

use crate::eq;
use crate::lit;
use crate::root;

#[test]
fn expr_contains() {
    let expression = &eq(root(), lit(3u64));
    assert!(expression.contains::<Literal>().unwrap());
    let expression = root();
    assert!(!expression.contains::<Literal>().unwrap());
}