rank function
The rank of the current input in its window partition, by the sort order
of the window; tied inputs share a rank. For Pipeline.addWindowFields.
Beta: window functions are a preview feature of the server.
Implementation
WindowFunction rank() => WindowFunction('rank');