alamb commented on code in PR #8105:
URL: https://github.com/apache/arrow-datafusion/pull/8105#discussion_r1388278604
##########
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:
I was thinking that it was such a niche usecase that if anyone needed the
`qualifier` they could make it explicitly via `Expr::Wildcard{ qualifier:
Some(...)}`, but that is indeed messier
I would be happy to add `qualified_wildcard` or similar if others think it
would be valuable
--
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]