aray commented on PR #36150:
URL: https://github.com/apache/spark/pull/36150#issuecomment-1105961462

   @EnricoMi thanks for the PR. This has been a TODO for years now since I 
added pivot. If you want to implement this with `stack` you can just use the 
expression directly, no need to add a function or use expr. The raw Expression 
is available here: 
https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/generators.scala#L149
   If you go that route, note that code generation is only currently enabled if 
stack generates 50 or less rows (per input row). So keep that in mind when 
benchmarking alternatives.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to