-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-42664][CONNECT] Support bloomFilter function for DataFrameStatFunctions
#40352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
...connect/server/src/main/scala/org/apache/spark/sql/connect/service/SparkConnectService.scala
Outdated
Show resolved
Hide resolved
bloomFilter function for DataFrameStatFunctionsbloomFilter function for DataFrameStatFunctions
...connect/server/src/main/scala/org/apache/spark/sql/connect/planner/SparkConnectPlanner.scala
Outdated
Show resolved
Hide resolved
connector/connect/client/jvm/src/main/scala/org/apache/spark/sql/DataFrameStatFunctions.scala
Outdated
Show resolved
Hide resolved
connector/connect/client/jvm/src/main/scala/org/apache/spark/sql/DataFrameStatFunctions.scala
Outdated
Show resolved
Hide resolved
connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/DataFrameStatSuite.scala
Outdated
Show resolved
Hide resolved
| numBits: Long, | ||
| fpp: Double): BloomFilter = { | ||
|
|
||
| val dataType = sparkSession |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add this due to:
- check
colsupport type in server side - Add
Castfor IntegerType/ShortType/ByteType
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use the TypeOf expression for this instead? Alternatively we can try to figure this out in the planner.
...connect/server/src/main/scala/org/apache/spark/sql/connect/planner/SparkConnectPlanner.scala
Outdated
Show resolved
Hide resolved
bloomFilter function for DataFrameStatFunctionsbloomFilter function for DataFrameStatFunctions
...connect/server/src/main/scala/org/apache/spark/sql/connect/planner/SparkConnectPlanner.scala
Outdated
Show resolved
Hide resolved
...rc/main/scala/org/apache/spark/sql/catalyst/expressions/aggregate/BloomFilterAggregate.scala
Outdated
Show resolved
Hide resolved
|
In the last commit, make |
|
GA failure is not related to the current PR |
| numBits: Long, | ||
| fpp: Double): BloomFilter = { | ||
|
|
||
| val agg = if (!fpp.isNaN) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before chanage to always pass 3 parameters, always pass all 4 parameters.
Now change to pass (col, expectedNumItems, fpp) if !fpp. isNaN , otherwise pass (col, expectedNumItems, numBits).
|
@LuciferYang can we restart this effort. I promise I will look at the proto PR :) |
|
This pr has been rebased many times, should I submit a new one... |
|
I make a clean one #42414 |
What changes were proposed in this pull request?
This is pr using
BloomFilterAggregateto implementbloomFilterfunction forDataFrameStatFunctions.Why are the changes needed?
Add Spark connect jvm client api coverage.
Does this PR introduce any user-facing change?
No
How was this patch tested?