HyukjinKwon opened a new pull request, #44379:
URL: https://github.com/apache/spark/pull/44379
### What changes were proposed in this pull request?
This PR implements `Scan.description` so it has a better string description
in `DataFrame.explain`.
```python
spark.table("pythonSourceTable").explain(True)
```
Before:
```
== Physical Plan ==
*(1) Project [x#0, y#1]
+- BatchScan test[x#0, y#1] class
org.apache.spark.sql.execution.python.PythonTableProvider$$anon$1$$anon$2
RuntimeFilters: []
```
After:
```
== Physical Plan ==
*(1) Project [x#0, y#1]
+- BatchScan test[x#0, y#1] (Python) RuntimeFilters: []
```
### Why are the changes needed?
Now it shows the class name for nested classes, which isn't quite pretty.
### Does this PR introduce _any_ user-facing change?
It changes the plan description but the main change has not been released
out yet. So no.
### How was this patch tested?
Manually tested as above.
### Was this patch authored or co-authored using generative AI tooling?
No.
--
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]