You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "HyukjinKwon (via GitHub)" <gi...@apache.org> on 2023/12/16 02:25:31 UTC
[PR] [SPARK-46427][PYTHON][SQL] Change Python Data Source's description to be pretty in explain [spark]
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-46427][PYTHON][SQL] Change Python Data Source's description to be pretty in explain [spark]
Posted by "HyukjinKwon (via GitHub)" <gi...@apache.org>.
HyukjinKwon commented on PR #44379:
URL: https://github.com/apache/spark/pull/44379#issuecomment-1858732887
Merged to master.
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-46427][PYTHON][SQL] Change Python Data Source's description to be pretty in explain [spark]
Posted by "HyukjinKwon (via GitHub)" <gi...@apache.org>.
HyukjinKwon closed pull request #44379: [SPARK-46427][PYTHON][SQL] Change Python Data Source's description to be pretty in explain
URL: https://github.com/apache/spark/pull/44379
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org