From d95ad74174344c0e81970b36efd7addf71c122f2 Mon Sep 17 00:00:00 2001 From: Jia-Xuan Liu Date: Sun, 11 Aug 2024 00:26:14 +0800 Subject: [PATCH] fix check and update function --- datafusion/expr/src/logical_plan/plan.rs | 2 +- datafusion/optimizer/src/analyzer/expand_wildcard_rule.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datafusion/expr/src/logical_plan/plan.rs b/datafusion/expr/src/logical_plan/plan.rs index f60b5c9c2d83..dc5448269c05 100644 --- a/datafusion/expr/src/logical_plan/plan.rs +++ b/datafusion/expr/src/logical_plan/plan.rs @@ -2937,7 +2937,7 @@ mod tests { use super::*; use crate::builder::LogicalTableSource; use crate::logical_plan::table_scan; - use crate::{col, exists, in_subquery, lit, placeholder, wildcard, GroupingSet}; + use crate::{col, exists, in_subquery, lit, placeholder, GroupingSet}; use datafusion_common::tree_node::{TransformedResult, TreeNodeVisitor}; use datafusion_common::{not_impl_err, Constraint, ScalarValue}; diff --git a/datafusion/optimizer/src/analyzer/expand_wildcard_rule.rs b/datafusion/optimizer/src/analyzer/expand_wildcard_rule.rs index b841ed374bd0..55851ec3cf58 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.display_name()?; + let name = expr.schema_name()?; if let Entry::Vacant(e) = unique_names.entry(name) { e.insert((position, expr)); unique_expr.push(expr.to_owned());