You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/03/14 09:51:58 UTC

[GitHub] [arrow-datafusion] Ted-Jiang opened a new issue #2009: Creating the supported unary/binary expressions using Vec as params

Ted-Jiang opened a new issue #2009:
URL: https://github.com/apache/arrow-datafusion/issues/2009


   **Is your feature request related to a problem or challenge? Please describe what you are trying to do.**`
   Add support for #2007 
   ```
                      // ScalarFunction::Rpad => Ok(rpad(vec![])),
                       // ScalarFunction::RegexpReplace => {
                       //     Ok(regexp_replace(vec![]))
                       // }
                       // ScalarFunction::RegexpMatch => {
                       //     Ok(regexp_match(vec![]))
                       // }
                       // ScalarFunction::Lpad => Ok(lpad(vec![])),
                       //ScalarFunction::Btrim => Ok(btrim((&args[0]).try_into()?))
   ```
   
   
   **Describe the solution you'd like**
   
   **Describe alternatives you've considered**
   A clear and concise description of any alternative solutions or features you've considered.
   
   **Additional context**
   try to use
   ```
   error[E0277]: the trait bound `Vec<Expr>: From<&[LogicalExprNode]>` is not satisfied
       --> datafusion-proto/src/from_proto.rs:1077:67
        |
   1077 |                     ScalarFunction::Btrim => Ok(btrim((&args[..]).try_into()?)),
        |                                                                   ^^^^^^^^ the trait `From<&[LogicalExprNode]>` is not implemented for `Vec<Expr>`
        |
        = help: the following implementations were found:
                  <Vec<T, A> as From<Box<[T], A>>>
                  <Vec<T, A> as From<VecDeque<T, A>>>
                  <Vec<T> as From<&[T]>>
                  <Vec<T> as From<&mut [T]>>
                and 7 others
        = note: required because of the requirements on the impl of `Into<Vec<Expr>>` for `&[LogicalExprNode]`
        = note: required because of the requirements on the impl of `TryFrom<&[LogicalExprNode]>` for `Vec<Expr>`
        = note: required because of the requirements on the impl of `TryInto<Vec<Expr>>` for `&[LogicalExprNode]`
   
   For more information about this error, try `rustc --explain E0277`.
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [arrow-datafusion] Ted-Jiang closed issue #2009: Creating the supported unary/binary expressions using Vec as params

Posted by GitBox <gi...@apache.org>.
Ted-Jiang closed issue #2009:
URL: https://github.com/apache/arrow-datafusion/issues/2009


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org