gengliangwang commented on code in PR #51236:
URL: https://github.com/apache/spark/pull/51236#discussion_r2162439298


##########
sql/api/src/main/scala/org/apache/spark/sql/functions.scala:
##########
@@ -764,6 +764,66 @@ object functions {
     hll_union_agg(Column(columnName))
   }
 
+  /**
+   * Aggregate function: returns approximate top k (i.e., k-most-frequent) 
items of a column,
+   * using Frequent Items Sketches from Apache DataSketches
+   *
+   * @group agg_funcs
+   * @since 4.1.0
+   */
+  def approx_top_k(e: Column, k: Int, maxItemsTracked: Int): Column =

Review Comment:
   @yhuang-db shall we skip changing this file in this PR? We can decide 
whether to add new DataFrame operations in a follow-up PR



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