jcsherin commented on code in PR #12893:
URL: https://github.com/apache/datafusion/pull/12893#discussion_r1797697080


##########
datafusion/functions-window/src/rank.rs:
##########
@@ -39,37 +39,76 @@ use field::WindowUDFFieldArgs;
 define_udwf_and_expr!(
     Rank,
     rank,
-    "Returns rank of the current row with gaps. Same as `row_number` of its 
first peer"
+    "Returns rank of the current row with gaps. Same as `row_number` of its 
first peer",
+    Rank::basic
 );
 
+// define_udwf_and_expr!(

Review Comment:
   The first argument needs to be a distinct identifier. I guess something like 
this will work,
   
   ```rust
   define_udwf_and_expr!(BasicRank, rank, "...", Rank::basic);
   define_udwf_and_expr!(PercentRank, rank, "...", Rank::percent_rank);
   define_udwf_and_expr!(DenseRank, rank, "...", Rank::dense_rank);
   ```



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