jackwener commented on code in PR #6504:
URL: https://github.com/apache/arrow-datafusion/pull/6504#discussion_r1226040389


##########
datafusion/optimizer/src/analyzer/count_wildcard_rule.rs:
##########
@@ -98,19 +98,35 @@ fn analyze_internal(plan: LogicalPlan) -> 
Result<Transformed<LogicalPlan>> {
             })))
         }
         LogicalPlan::Projection(projection) => {
-            let projection_expr = projection
-                .expr
-                .iter()
-                .map(|expr| expr.clone().rewrite(&mut rewriter))
-                .collect::<Result<Vec<_>>>()?;
-            Ok(Transformed::Yes(LogicalPlan::Projection(
-                Projection::try_new_with_schema(
-                    projection_expr,
-                    projection.input,
-                    // rewrite_schema(projection.schema.clone()),
-                    rewrite_schema(&projection.schema),
-                )?,
-            )))
+            let input = projection

Review Comment:
   ```suggestion
               // resolve issue: 
https://github.com/apache/arrow-datafusion/issues/6447
               // TODO: In the future, we can systematically solve the problem 
about `name changes` and then revert these code and other code to resolve this 
kind of problem.
               let input = projection
   ```



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