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.3.1.tar.gz
(5.9 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.3.1.tar.gz.
File metadata
- Download URL: pyspark_inspect-0.3.1.tar.gz
- Upload date:
- Size: 5.9 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 |
e004f9f325c1462bd83aebee7366f687a0e87d976f192060bd023701e10ee2f9
|
|
| MD5 |
275fd5bcaf0cc1f9d59d226631d4a984
|
|
| BLAKE2b-256 |
3fdeaf8f36f8f4232c60a6baf8eea21e93ecc16dd8202878202612eb1c5d4a10
|
File details
Details for the file pyspark_inspect-0.3.1-py3-none-any.whl.
File metadata
- Download URL: pyspark_inspect-0.3.1-py3-none-any.whl
- Upload date:
- Size: 8.1 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 |
1dc3819dcd0d88152619908f942c5ba370dba7e883aee872754128d2bcef7d04
|
|
| MD5 |
b6b4b8260eeea498bedd4dacfd43079f
|
|
| BLAKE2b-256 |
6e61c4e941b238d35ceb94dccd03a8baf9d76d3c6ea7fc1d2ac3bc71dffb2a86
|