nuno-faria commented on code in PR #22917:
URL: https://github.com/apache/datafusion/pull/22917#discussion_r3438401056


##########
datafusion/sql/src/planner.rs:
##########
@@ -575,7 +575,8 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
             let fields = plan.schema().fields().clone();
             LogicalPlanBuilder::from(plan)
                 .project(fields.iter().zip(idents).map(|(field, ident)| {
-                    
col(field.name()).alias(self.ident_normalizer.normalize(ident))
+                    
Expr::Column(Column::from_qualified_name_ignore_case(field.name()))

Review Comment:
   Thanks @kosiew, it's better to alias the existing columns directly. I also 
updated the test to include a column with a dot.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to