You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SPARK-49060][CONNECT] Clean up Mima rules for SQL-Connect binary compatibility checks
### What changes were proposed in this pull request?
This PR modifies some Mima rules which are used for checking the binary compatibility between `sql` and `connect` modules. Major changes include:
- Removed unnecessary filters for specific `private[sql]` constructors - there's a wildcard rule which filters out all of them.
- Removed outdated filters about APIs that are already consistent.
- Add a warning about unused filters.
Current output:
```bash
$ ./dev/connect-jvm-client-mima-check
Do connect-client-jvm module mima check ...
Warning: ExcludeByName[Problem]("org.apache.spark.sql.Dataset.queryExecution") did not filter out any problems.
Warning: ExcludeByName[Problem]("org.apache.spark.sql.Dataset.sqlContext") did not filter out any problems.
Warning: ExcludeByName[Problem]("org.apache.spark.sql.Dataset.selectUntyped") did not filter out any problems.
Warning: ExcludeByName[Problem]("org.apache.spark.sql.Dataset.rdd") did not filter out any problems.
Warning: ExcludeByName[Problem]("org.apache.spark.sql.Dataset.toJavaRDD") did not filter out any problems.
Warning: ExcludeByName[Problem]("org.apache.spark.sql.Dataset.javaRDD") did not filter out any problems.
finish connect-client-jvm module mima check ...
connect-client-jvm module mima check passed.
```
I manually audited all rules defined in the list.
One issue I found is that all APIs in `Dataset` are not being checked at all, likely due to having a `private[sql]` companion object in `spark-core`. Changing the object's visibility from `private[sql]` to `public` will resolve this issue. The exact reason is unknown and is to be investigated.
### Why are the changes needed?
Need to make sure Mima is really working.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Not needed.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes#47487 from xupefei/mima-refactor.
Authored-by: Paddy Xu <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
Copy file name to clipboardExpand all lines: connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/connect/client/CheckConnectJvmClientCompatibility.scala
0 commit comments