From d2bdb7f8858b0097704613edaf46b31b9142d794 Mon Sep 17 00:00:00 2001 From: Jia-Xuan Liu Date: Sun, 11 Aug 2024 00:38:01 +0800 Subject: [PATCH] fix check --- datafusion/optimizer/src/analyzer/expand_wildcard_rule.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datafusion/optimizer/src/analyzer/expand_wildcard_rule.rs b/datafusion/optimizer/src/analyzer/expand_wildcard_rule.rs index 55851ec3cf58..a8eddb25f392 100644 --- a/datafusion/optimizer/src/analyzer/expand_wildcard_rule.rs +++ b/datafusion/optimizer/src/analyzer/expand_wildcard_rule.rs @@ -82,7 +82,7 @@ fn to_unique_names<'a>( .into_iter() .enumerate() .try_for_each(|(position, expr)| { - let name = expr.schema_name()?; + let name = expr.schema_name().to_string(); if let Entry::Vacant(e) = unique_names.entry(name) { e.insert((position, expr)); unique_expr.push(expr.to_owned());