Python wrapper for Spark logical plan capture extension
Project description
spark-logical-plan-capture
Python package for connecting the Spark extension
io.github.mt.logicplan.LogicalPlanCaptureExtension via spark-submit
or from PySpark code.
Install
pip install spark-logical-plan-capture
Usage in PySpark
from pyspark.sql import SparkSession
from spark_logical_plan_capture import get_spark_conf, get_jar_path
conf = get_spark_conf()
spark = (
SparkSession.builder
.config("spark.sql.extensions", conf["spark.sql.extensions"])
.config("spark.jars", conf["spark.jars"])
.getOrCreate()
)
Usage with spark-submit
spark-submit \
--conf "spark.sql.extensions=io.github.mt.logicplan.LogicalPlanCaptureExtension" \
--jars "$(python -c 'from spark_logical_plan_capture import get_jar_path; print(get_jar_path())')" \
your_job.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 spark_logical_plan_capture-0.1.0.tar.gz.
File metadata
- Download URL: spark_logical_plan_capture-0.1.0.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
913862d1740ee82c3643ef8debee0252072edca07acef47326bb6540334d0d78
|
|
| MD5 |
79f19e9c877ec19c656aa0db0a9d61f8
|
|
| BLAKE2b-256 |
a4d4d0b7141c3e70b346e8c74be75b9b5d552dde0e3c97d552b4b7a062b1b17a
|
File details
Details for the file spark_logical_plan_capture-0.1.0-py3-none-any.whl.
File metadata
- Download URL: spark_logical_plan_capture-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67b92e847c18aa45228cf4201507651232a2fe50aa56f7de6c01a1a3e89de090
|
|
| MD5 |
c289821fce91bb094c432951f0f938fc
|
|
| BLAKE2b-256 |
970296a500f8dcbd92bd3793f8d1b389c21b61028159247293689c0dfff0b776
|