Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-11742

[Rust] [DataFusion] Add Expr::is_null and Expr::is_not_null functions

    XMLWordPrintableJSON

    Details

      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")));

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ngatran Nga Tran
                Reporter:
                alamb Andrew Lamb
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h