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.0.tar.gz
(6.0 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.0.tar.gz.
File metadata
- Download URL: pyspark_inspect-0.3.0.tar.gz
- Upload date:
- Size: 6.0 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 |
5c3b38da70025f26dae898d837dc88f8139aa5803d7d7efe85573e5e60464dc6
|
|
| MD5 |
bb57aabcaf6b0cd1f3ea310035de16bb
|
|
| BLAKE2b-256 |
3785ca2f376e7bc16c43d3a8dc71e6427cde951550f43f292caede13ef22cc61
|
File details
Details for the file pyspark_inspect-0.3.0-py3-none-any.whl.
File metadata
- Download URL: pyspark_inspect-0.3.0-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 |
e90a0aa23d47b929fec2319181baefd048df2e553917c381eef0e6a0de0a321b
|
|
| MD5 |
b014bc252d80102366ab4bca61ae5be2
|
|
| BLAKE2b-256 |
65105491b93b811b670ba6c58eb2323cd1fbee46187f5ad7932a408bf0032ff5
|