jorisvandenbossche opened a new issue, #39095:
URL: https://github.com/apache/arrow/issues/39095

   Currently the `FieldRef` string representation looks like 
`"FieldRef.Name(col)"` or `"FieldRef.Nested(FieldRef.Name(col) 
FieldRef.Name(field1))"`. 
   
   While being explicit and descriptive, those representations also show up in 
error messages (also on the Python side), eg when a certain field reference is 
not found in the schema, or show up in the repr of expressions.
   
   I don't what would be the best tradeoff between still descriptive and clear 
but also concise and nice to read, but I think I would prefer something like 
`FieldRef("col")` or `FieldRef(("col", "field1"))` (I don't know if it is a 
problem that the repr would include quotes, and this also doesn't yet include 
field paths).  
   Or even an option to just get the name `"col"`, such that you can combine 
that more in a sentence like "No match for field ref <name>".
   
   Where this is currently implemented:
   
   
https://github.com/apache/arrow/blob/1cc1f4c752895301371ee59d315ebffe74224c66/cpp/src/arrow/type.cc#L2054-L2072
   
   


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