jayzhan211 commented on code in PR #11724:
URL: https://github.com/apache/datafusion/pull/11724#discussion_r1702807047


##########
datafusion/common/src/column.rs:
##########
@@ -156,6 +157,17 @@ impl Column {
         }
     }
 
+    fn quoted_flat_name_if_contain_dot(&self) -> String {
+        match &self.relation {
+            Some(r) => format!(
+                "{}.{}",
+                table_reference_to_quoted_string(r),
+                quoted_if_contain_dot(&self.name)
+            ),
+            None => quoted_if_contain_dot(&self.name).to_string(),
+        }
+    }

Review Comment:
   Maybe instead of modifying `Column`, we should modify the `display_name` for 
`Expr`, so if we found column inside ScalarFunction, we could skip the double 
quote anyway. (by something like boolean flag?)



-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to