Jefffrey commented on issue #6845:
URL: 
https://github.com/apache/arrow-datafusion/issues/6845#issuecomment-1632369943

   Seems root cause is how when searching for the column to rename, `Package`, 
you need to ensure the string you passed in is properly quoted as noted in the 
original issue:
   
   ```rust
   .with_column_renamed("\"Package\"", "package")
   ```
   
   Since otherwise it'll look for column `package` which doesn't exist.
   
   
https://github.com/apache/arrow-datafusion/blob/d6985b0fc1e4362b80beea059857c6bde65b4d04/datafusion/core/src/dataframe.rs#L1015-L1029
   
   Maybe make the search for the field on line 1022, `field_from_column(...)` 
more smarter by allowing to do case insensitive match as fallback if can't find 
an exact match?


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