cj-zhukov opened a new issue, #16090:
URL: https://github.com/apache/datafusion/issues/16090

   ### Is your feature request related to a problem or challenge?
   
   This PR introduces a df! macro for creating in-memory DataFrame from column 
expressions in a concise and readable way. It can be useful for rapid 
prototyping and testing. The design of the macro was inspired by the Polars 
(https://docs.rs/polars/latest/polars/macro.df.html). I'd like to bring similar 
ergonomics to DataFusion.
   
   ### Describe the solution you'd like
   
   ```rust
       let df = df!(
           "id" => [1, 2, 3],
           "name" => ["foo", "bar", "baz"]
       );
       df.show().await?;
   //+----+------+
   //| id | name |
   //+----+------+
   //| 1  | foo  |
   //| 2  | bar  |
   //| 3  | baz  |
   //+----+------+
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


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