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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to