Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
IndexAccessor in datafusion::functions_array::expr_ext - Rust
[go: Go Back, main page]

Trait IndexAccessor

Source
pub trait IndexAccessor {
    // Required method
    fn index(self, key: Expr) -> Expr;
}
Available on crate feature nested_expressions only.
Expand description

Return access to the element field. Example expr["name"]

§Example Access element 2 from column “c1”

For example if column “c1” holds documents like this

[10, 20, 30, 40]

You can access the value “30” with

let expr = col("c1")
   .index(lit(3));
assert_eq!(expr.schema_name().to_string(), "c1[Int32(3)]");

Required Methods§

Source

fn index(self, key: Expr) -> Expr

Implementors§