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

   ### Describe the enhancement requested
   
   Hi,
   
   I am testing out the recently added "pivot_wider" kernel and noticed that it 
doesn't support integer key types, i.e.,
   
   If I tried to do
   ```
   pc.call_function("pivot_wider", [[3, 6558, 123], [10, None, 11]])
   ```
   
   It will error out, however, I think it can be useful to support this in 
addition to
   ```
   pc.call_function("pivot_wider", [["3", "6558", "123"], [10, None, 11]])
   ```
   
   The reason is that sometimes the keys can be integer (i.e., id) and the user 
could want to have one column per id. The current workaround is to "cast" the 
key columns to string but I think it is more efficient to support integer key 
types natively (basically id n in key columns can map to output column "n").
   
   @pitrou Does that make sense?
   
   
   ### Component(s)
   
   C++


-- 
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: issues-unsubscr...@arrow.apache.org.apache.org

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

Reply via email to