The ultimate aim of the project is to build a Proxy mock for the Spark object
A common Databricks pipeline uses the following commands to interact with Delta tables -
-
spark.read.table("<schema_name>.<table_name>")
-
spark.write.table("<schema_name>.<table_name>")
-
spark.sql("SELECT * FROM <schema_name>.<table_name>")
The proxy replaces these functionalities with CSV files and Spark temp views.
All code is placed inside src directory and all modules are placed inside their own folders with __init__.py files. The main mock Spark object / proxy object is inside the testbricks package.
- 001-spark-mock-catalog: Added Python 3.14 + pyspark, pandas, pyarrow, numpy, py4j
- 001-spark-mock-catalog: Added [if applicable, e.g., PostgreSQL, CoreData, files or N/A]
- Python 3.14 + pyspark, pandas, pyarrow, numpy, py4j (001-spark-mock-catalog)
- Local files (CSV-compatible data + catalog registry) (001-spark-mock-catalog)
PySpark requires Java (OpenJDK 21 is installed in the Cloud Agent environment).
# Install dependencies (also run automatically by the Cloud Agent install phase)
./.cursor/install.sh
# Run the full test suite with coverage (matches CI)
python3.14 -m coverage run -m pytest tests/ -v
python3.14 -m coverage report