amaliujia commented on code in PR #46559:
URL: https://github.com/apache/spark/pull/46559#discussion_r1599231832
##########
connector/connect/server/src/main/scala/org/apache/spark/sql/connect/dsl/package.scala:
##########
@@ -513,6 +513,25 @@ package object dsl {
freqItems(cols.toArray, support)
def freqItems(cols: Seq[String]): Relation = freqItems(cols, 0.01)
+
+ def sampleBy(col: String, fractions: Map[Any, Double], seed: Long):
Relation = {
Review Comment:
This file was used to be here because we assumed that the DSL here can be
used to build Scala client. But now this DSL is purely used for testing, then
probably we can move it.
##########
connector/connect/server/src/main/scala/org/apache/spark/sql/connect/dsl/package.scala:
##########
@@ -513,6 +513,25 @@ package object dsl {
freqItems(cols.toArray, support)
def freqItems(cols: Seq[String]): Relation = freqItems(cols, 0.01)
+
+ def sampleBy(col: String, fractions: Map[Any, Double], seed: Long):
Relation = {
Review Comment:
This file used to be here because we assumed that the DSL here can be used
to build Scala client. But now this DSL is purely used for testing, then
probably we can move it.
--
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]