Inspect pyspark query plans
Project description
pyspark-inspect
pyspark-inspect allows to inspect the query plans of pyspark dataframes from Python.
It converts analyzed Catalyst plans into Python data structures that can be queried programmatically.
Compatibility & Limitiations
- Tested against Spark 3.5
- Spark Connect is not supported
- Coverage of Spark SQL operations is currently very limited
Basic Usage
from pypspark.sql import functions as F
from pyspark_inspect import inspect_dataframe
df = (
spark.createDataFrame([[1, 2]], ['a', 'b'])
.withColumn('c', F.col('a') + F.col('b'))
)
plan = inspect_dataframe(df)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyspark_inspect-0.2.0.tar.gz
(5.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyspark_inspect-0.2.0.tar.gz.
File metadata
- Download URL: pyspark_inspect-0.2.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.14.3 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1487812e2e86f7e685ee70c8e270e3579aba5d06731e2f4b6994b6421672b835
|
|
| MD5 |
94001f09d723f7f7fa077b544c3a1163
|
|
| BLAKE2b-256 |
4f0dbe613e6fd7826bc559c1a43a321cbe623074d62ddb1a1898a84f046921d2
|
File details
Details for the file pyspark_inspect-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pyspark_inspect-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.14.3 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98804d67355e2a0af34d06360fb09fadaf7f2fe76bb013b122da1c52d6fd9047
|
|
| MD5 |
bdc1bf89ff058f9b35ac404f603e87d3
|
|
| BLAKE2b-256 |
0e4159327a40d8ebc77ebe219554f7a517c7b5d5eade0afc3f3e2afa6fcfcb85
|