Jefffrey commented on code in PR #5343:
URL: https://github.com/apache/arrow-datafusion/pull/5343#discussion_r1119896440


##########
datafusion/common/src/dfschema.rs:
##########
@@ -677,7 +687,7 @@ mod tests {
         // lookup with unqualified name "t1.c0"
         let err = schema.index_of_column(&col).err().unwrap();
         assert_eq!(
-            "Schema error: No field named 't1.c0'. Valid fields are 't1'.'c0', 
't1'.'c1'.",
+            r#"Schema error: No field named "t1.c0". Valid fields are 
"t1"."c0", "t1"."c1"."#,

Review Comment:
   Yeah this did come to mind, but:
   
   - Either have to store alongside the name that it was normalized
   - Or each time quoting string have to do a pass over it to check for special 
characters/uppercase characters
   
   1st one I don't really like as have to add more to TableReference (and 
related structs)
   
   2nd one would be simpler to implement, maybe I'm overthinking the impact of 
the overhead 😅



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