MCPcopy Create free account
hub / github.com/apache/datafusion / all_unique

Function all_unique

datafusion/physical-expr/src/expressions/lambda.rs:209–219  ·  view source on GitHub ↗
(params: &[String])

Source from the content-addressed store, hash-verified

207}
208
209fn all_unique(params: &[String]) -> bool {
210 match params.len() {
211 0 | 1 => true,
212 2 => params[0] != params[1],
213 _ => {
214 let mut set = HashSet::with_capacity(params.len());
215
216 params.iter().all(|p| set.insert(p.as_str()))
217 }
218 }
219}
220
221fn check_async_udf(body: &Arc<dyn PhysicalExpr>) -> Result<()> {
222 if body.exists(|expr| {

Callers 1

try_newMethod · 0.70

Calls 5

allMethod · 0.80
lenMethod · 0.45
iterMethod · 0.45
insertMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…