Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-43527][PYTHON] Fix
catalog.listCatalogs
in PySpark
### What changes were proposed in this pull request? Fix `catalog.listCatalogs` in PySpark ### Why are the changes needed? existing implementation outputs incorrect results ### Does this PR introduce _any_ user-facing change? yes before this PR: ``` In [1]: spark.catalog.listCatalogs() Out[1]: [CatalogMetadata(name=<py4j.java_gateway.JavaMember object at 0x1031f08b0>, description=<py4j.java_gateway.JavaMember object at 0x1049ac2e0>)] ``` after this PR: ``` In [1]: spark.catalog.listCatalogs() Out[1]: [CatalogMetadata(name='spark_catalog', description=None)] ``` ### How was this patch tested? added doctest Closes apache#41186 from zhengruifeng/py_list_catalog. Authored-by: Ruifeng Zheng <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]> (cherry picked from commit a232083) Signed-off-by: Hyukjin Kwon <[email protected]>
- Loading branch information