Omega359 opened a new issue, #8800:
URL: https://github.com/apache/arrow-datafusion/issues/8800

   ### Describe the bug
   
   If a data frame has column names such as FileId, FileType, SequenceId 
attempting to rename this with calls such as 
   ` data_frame = data_frame.with_column_renamed("FileId", "file_id").unwrap();`
   will return success however the column will *not* be renamed. After some 
investigation by Andy Grove it was determined that the names would have to be 
wrapped in quotes (ala sql) to have the columns renamed correctly. 
   ` data_frame = data_frame.with_column_renamed("\"FileId\"", 
"file_id").unwrap();`
   
   This is neither intuitive, documented nor normal for any dataframe api I've 
encountered in the past.
   
   ### To Reproduce
   
   I wrote a [quick test 
case](https://gist.github.com/Omega359/238c790e1fa01685ccbc17803ae59751) when 
investigating this issue.
   
   ### Expected behavior
   
   For me the expectation is that referring to the column name in the first 
parameter would be 'as-is' without any configuration changes (say, to use case 
insensitive names or to require quotes ala sql)
   
   ### Additional context
   
   _No response_


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