You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Andrew Lamb (Jira)" <ji...@apache.org> on 2021/02/24 14:34:00 UTC
[jira] [Updated] (ARROW-11742) [Rust] [DataFusion] Add
Expr::is_null and Expr::is_not_null functions
[ https://issues.apache.org/jira/browse/ARROW-11742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Lamb updated ARROW-11742:
--------------------------------
Description:
There are functions such as `Expr::lt` for building up expression trees more simply
I recently noticed that there is no `Expr::is_null()` or `Expr::is_not_null` for easily creating `Expr::IsNull(..)` and `Expr::IsNotNull(..)`, respectively. Instead users must currently do something like;
```
let tag_name_is_not_null = Expr::IsNotNull(Box::new(col(tag_name)));
```
// What we want:
let expr : Expr = col("a").is_null();
// What we have to do:
let expr : Expr = Expr::IsNull(Box::new(col("a")));
was:
There are functions such as `Expr::lt` for building up expression trees more simply
I recently noticed that there is no `Expr::is_null()` or `Expr::is_not_null` for easily creating `Expr::IsNull(..)` and `Expr::IsNotNull(..)`, respectively. Instead users must currently do something like;
```
let tag_name_is_not_null = Expr::IsNotNull(Box::new(col(tag_name)));
```
> [Rust] [DataFusion] Add Expr::is_null and Expr::is_not_null functions
> ---------------------------------------------------------------------
>
> Key: ARROW-11742
> URL: https://issues.apache.org/jira/browse/ARROW-11742
> Project: Apache Arrow
> Issue Type: Improvement
> Reporter: Andrew Lamb
> Priority: Minor
>
> There are functions such as `Expr::lt` for building up expression trees more simply
> I recently noticed that there is no `Expr::is_null()` or `Expr::is_not_null` for easily creating `Expr::IsNull(..)` and `Expr::IsNotNull(..)`, respectively. Instead users must currently do something like;
> ```
> let tag_name_is_not_null = Expr::IsNotNull(Box::new(col(tag_name)));
> ```
> // What we want:
> let expr : Expr = col("a").is_null();
> // What we have to do:
> let expr : Expr = Expr::IsNull(Box::new(col("a")));
--
This message was sent by Atlassian Jira
(v8.3.4#803005)