viczsaurav commented on issue #1365:
URL: 
https://github.com/apache/datafusion-comet/issues/1365#issuecomment-2640645653

   Can we use the following approach? Where would this example reside?
   
   1. Initialize DataFusion Context
   
   2. Define Custom Expression
    - Implement a Scalar Function using `make_scalar_function`.
    - Simple string conversion = StringArray => uppercase strings
   
   3. Register the Expression
   - Wrap the function in a ScalarUDF.
   - Specify input/output data types and function volatility.
   - Add it to SessionContext using register_udf().
   
   4. Use in SQL Query
    - Read data into a data frame / create it from in-memory `Vec`
    - Execute an SQL query that invokes the registered function.
   
   5. Display Results - Show the transformed output using `.show().await?.`


-- 
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-unsubscr...@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to