jdye64 opened a new issue, #2563:
URL: https://github.com/apache/arrow-datafusion/issues/2563

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   In non-rust bindings where Rust Enum inspection is not present it is 
difficult to understand which `Expr` variant you are interacting with. It would 
be much easier in bindings written in languages like Python for example, to 
have the ability to invoke a function on an `Expr` variant instance and be 
return a String representation of that variant. Something named obviously like 
`variant_name()`
   
   **Describe the solution you'd like**
   Function added to `Expr` that returns a `String` representation of the 
current variant represented by the `Expr` instance the function is called on.
   
   **Describe alternatives you've considered**
   Thought about using Macros and adding similar blanket coverage for all 
instance types but that seems to heavy and I personally often find heavy macro 
use in the code base unclear.
   
   **Additional context**
   PyO3 is a popular binding library for Python and Rust. There is currently no 
support for directly introspecting Rust Enums and hence why this change would 
be nice to have.
   


-- 
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