Skip to main content

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.1.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyspark_inspect-0.1.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file pyspark_inspect-0.1.0.tar.gz.

File metadata

  • Download URL: pyspark_inspect-0.1.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

Hashes for pyspark_inspect-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5f44f6c37fb13865d385b3f2351be35bfcfdcdf550513f9ab8b5aff1b1010c24
MD5 9c2adaab3c50e76ba3b20b11a6b0af16
BLAKE2b-256 cafc42b57c5ff2ad774d25588c05528c4a6ad7002a12d19a587f2c3310b6e979

See more details on using hashes here.

File details

Details for the file pyspark_inspect-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyspark_inspect-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 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

Hashes for pyspark_inspect-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 220373ba3b9fb7b36f70903ac2bd9b1b3c442302ceef41ddf384b95a25c95ee7
MD5 0255250ec767cbbce53f1aa0f397b998
BLAKE2b-256 ae221569447ad3d3e6de7d0bc1a902fbd7e87671ad8a30cda5167a5daf43b15e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page