waynexia commented on code in PR #8105:
URL: https://github.com/apache/arrow-datafusion/pull/8105#discussion_r1388067070


##########
datafusion/expr/src/expr_fn.rs:
##########
@@ -99,6 +99,19 @@ pub fn placeholder(id: impl Into<String>) -> Expr {
     })
 }
 
+/// Create an '*' [`Expr::Wildcard`] expression that matches all columns
+///
+/// # Example
+///
+/// ```rust
+/// # use datafusion_expr::{wildcard};
+/// let p = wildcard();
+/// assert_eq!(p.to_string(), "*")
+/// ```
+pub fn wildcard() -> Expr {
+    Expr::Wildcard { qualifier: None }
+}

Review Comment:
   Do we need a `fn wildcard_with_qualifier()` or `fn wildcard(qualifier: 
None)`? Though it's not used in our examples.



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